Cart
Free US shipping over $10
Proud to be B-Corp

Programming with MFC for Windows 95 (Bk/CD-ROM) BROQUARD

Programming with MFC for Windows 95 (Bk/CD-ROM) By BROQUARD

Programming with MFC for Windows 95 (Bk/CD-ROM) by BROQUARD


$77.93
Condition - Good
Only 1 left

Summary

Enables a programmer who knows C and C++ but has no Windows programming experience to learn Windows programming. Readers will then be able to make the most of Windows 95, use MFC and OWL to build applications that support the Windows interface, and build animation effects for business and games.

Faster Shipping

Get this product faster from our US warehouse

Programming with MFC for Windows 95 (Bk/CD-ROM) Summary

Programming with MFC for Windows 95 (Bk/CD-ROM) by BROQUARD

This book is readable and uses a building-block approach to learning Windows 95 programming. Learn how to use either the Borland OWL and Microsoft MFC class libraries to control Windows 95 from C++. Build applications compliant with the new Windows 95 interface, convert existing applications to support Windows 95 improved memory model, and learn how to incorporate multimedia elements in your applications. Using this book, a programmer who knows C and C++ but has no Windows programming experience can easily learn the "black art" of Windows programming.

Table of Contents

Introduction. Software Requirements. The Sample Programs on the Attached CD. Save a Tree. How to Use the Enclosed CD. 1. Windows 95 Basics. Introduction to Windows 95 Programming. Coding the Windows 95 API. Converting a Windows 3.1 Application to a Windows 95 Application. Common Windows 95 Graphical Objects. Resources. Construction of Resources. Resource Styles. Windows 95 New Data Types and DEFINES and Their Windows 3.1 Counterparts. Structures Under Windows 95: Size and Alignment Effects. Hungarian Notation. Windows 95 API Function Names. Our Sample Program Coding Notation. Getting Started: The Software. Using Folders (Subdirectories) and the Sample Programs. Building the Application: Running the Software. A Project's Files. Precompiled Headers. Pgm01a.c: The Hello World Program. Listing for File: Pgm01a.c. Using Comments. The WinMain Function. What To Do Next. 2. Outputting Text and Using Scroll Bars The Paint Process. Painting from Other Places. How to Use the TextOut Function. Acquiring Text Measurements. Using the Text Measurements. Setting the TextOut Alignment. Obtaining the Current Size of the Client Area. Scroll Bars: Theory of Operation. Structuring a Program for Painting. The System Metrics Structure. Pgm02a: The Wrong Way to Display with Variable Width Fonts. Listing of File Pgm02a.c Excerpts. Pgm02b: The Right Way to Display with Variable Width Fonts. Listing of File Sysmets.h Excerpts. Listing of File Pgm02b.c Excerpts. Other Possible Methods. What to Do Next. 3. Handling the Keyboard and the Mouse. Keyboard Basics. The Windows 95 Keyboard Messages. Who Has the Input Focus? Responding to WM_KEYDOWN Messages. Sending a Message to Your Own Application. Processing WM_CHAR Messages. Inputting Text Lines: the Caret. Writing a Text Editor. The Mouse Interface. Client Area Mouse Messages. Nonclient Area Mouse Messages. Button Click Pairing. Messages Sent upon Closing an Application. Working with Coordinates. Hit Testing. Other Mouse Functions. Some More Graphics Functions. Using Child Windows. Window Longs: an Advanced Feature. Putting Keystrokes, Mouse Actions, and Child Windows into Action: Tic Tac Toe. Listing of File Pgm03.c Excerpts. What to Do Next. 4. Controlling Windows 95 From C++ MFC. Introduction. Beginning Actions. Some Basic Properties of the MFC Class Library. MFC Basic Applications. The Relationship Between MFC and Windows 95. Deriving Your Main Window Class. Cycle to Set Up an Interface Object and Its Associated Interface Element. CWnd and CFrameWnd Public Data Members. CFrameWnd and CWnd Constructors. CWnd Member Functions (Inherited by CFrameWnd). MFC Message Response Tables and Windows 95 WM_ Messages. Predefined Headers: How to Make Them Work for You. Listing for File: StdAfx.h. The Sample Hello MFC Programs: Pgm04a, Pgm04b, and Pgm04c. The Sample Hello Program Pgm04a: With Separate Client Window. Listing for File: Pgm4AApp.h from Pgm04a. Listing for File: Pgm4AApp.cpp from Pgm04a. Listing for File: FrameWin.h from Pgm04a. Listing for File: FrameWin.cpp from Pgm04a. Listing for File: MainWin.h from Pgm04a. Listing for File: MainWin.cpp from Pgm04a. The Sample Hello Program Pgm04b: The Frame Window Only Model. Listing for File: Pgm4BApp.cpp Extracts from Pgm04b. Listing for File: FrameWin.h from Pgm04b. Listing for File: FrameWin.cpp from Pgm04b. The Sample Hello Program Pgm04c: The Condensed Model. Listing for File: Pgm4CApp.h from Pgm04c. Listing for File: Pgm4CApp.cpp from Pgm04c. Style Guidelines. Handling Events in Pgm04d. Listing for File: FrameWin.h from Pgm04d. Listing for File: FrameWin.cpp from Pgm04d. The OnSize Function. The SetBkMode, SetBkColor, and SetTextcolor Functions. The OnLButtonDown Function. Sending Messages. The OnClose Function. Using Fixed Fonts. What to Do Next. 5. Timers, Colors, Brushes, and Resource Files. Timers. How Colors Are Handled. Setting Colors. Dynamic Alterations to WNDCLASS. Creating Brushes and Pens. Other MFC Text Member Functions. Sample Program Pgm05a. Listing for File: FrameWin.h Pgm05a Excerpts. Listing for File: FrameWin.cpp Pgm05a Excerpts. Resource Files: An Introduction. String Resources: A How To. Listing for File: Pgm5b.rc Pgm05b Excerpts. Listing for File: resource.h Pgm05b Excerpts. Retrieving Strings at Run Time. The Improved Pgm05b Program. Listing for File: Pgm05bApp.cpp Pgm05b Excerpts. Listing for File: FrameWin.cpp Pgm05b Excerpts. What to Do Next. 6. Menus. Menu Syntax. Predefined MFC Menu ID Names and Numbers. Sample Menu for Pgm06a. Listing for File: resource.h Pgm06a Excerpts. Listing for File: Pgm06a.rc Pgm06a Excerpts. Installing a Menu, C-Style. C Method 1: Assign the Menu in the Window Class Structure. C Method 2: Dynamically Load and Install a Menu. C Method 3: Manually Build the Menu from Component Menuitems. Installing a Menu, MFC-Style. MFC Method 1: Pass the String Name in the Frame Window Class Constructor. MFC Method 2: Use the C-style Method 2 or 3. MFC Method 3: Use a CMenu Class to Construct Menu Objects. Working with the Menu Choices of the User. C-Style. MFC-Style. Dynamically Checkmarking, Graying/unGraying, Enabling/Disabling Menu Items. MFC Command Enablers. Using MFC's CMenu Member Functions. Free Floating Pop-up Menus. Menu Accelerators. The Coding for Pgm06a. Listing for File: FrameWin.h Pgm06a Excerpts. Listing for File: FrameWin.cpp Pgm06a Excerpts. What to Do Next. 7. Dialogs, Resources, Property Sheets: Their Construction and Use. Introduction. Using a Developer Studio to Browse Existing Resources. Creation of Icons, Bitmaps, and Cursors. Using Icons and Cursors. Method 1: The C API Method. Method 2: Use the CWinApp Functions to Load the Cursor. Method 3: the SetClassLong Method. Controls and Dialog Boxes. Construction of Dialog Boxes. The Dialog Boxes for Pgm07a. The Text Syntax of Dialogs and Controls. Listing for File: resource.h Pgm07a Excerpts. Listing for File: Pgm07a.rc Pgm07a Excerpts. Changes to the Implementation of the Application-Derived Class. MFC Dialog Implementation. Listing for File: FrameWin.h Pgm07a Excerpts. Listing for File: FrameWin.cpp Pgm07a Excerpts. MFC Basic Dialog Implementation the Help-About Dialog. MFC Modeless Dialogs--the CLocateDlg Dialog. Manual Dialog Data Transfer--The Enter Names CNamesDlg Dialog. MFC Radio Buttons and Check Boxes and Dynamic Data Exchange (DDX) The CRadioBtnsDlg and CCheckBoxDlg Dialogs. Other DDX Functions and Data Validators. Data Validation. MFC List Box Implementation--the CListBoxLinesDlg Dialog. Property Sheets or Tabbed Dialogs. Listing for File: Pgm07b.rc "Better Design Version" Excerpts. MFC Property Sheet Conversion Pgm07b. Some New Windows 95 Controls: Slider (Track Bar) and Spin (Up/Down) Controls. MFC Implementation of Sliders and Spin Control Buttons. 8. Memory, Files, Common Dialog Boxes, Scroll Bars. Introduction. Windows 3.1 and Windows 95 Memory Management. Windows 3.1 Memory Usage. Windows 95 Global Memory API Functions. Windows 95 New Heap Memory Functions. File Handling Under Windows 95--Long Filenames. Which File Processing Functions Should We Use? Working with the Windows 95 File Functions. Simple Replacement Functions for fgets and fputs. MFC Encapsulation of the Windows 95 Common Dialogs. The CFileDialog Class. The CFontDialog. The CFindReplaceDialog. Pgm08a: Handling All of the File Menu Choices. Listing for File: Pgm08a.rc Excerpts. Listing for File: resource.h Excerpts. Listing for File: FrameWin.h Excerpts. Using MFC's CScrollBar to Scroll a Text Window. MFC Initial Sequence in Frame Window Constructors. The New SetScrollInfo Method. Additional Considerations. Elimination of Repetitive Coding Sequences. 9. Graphics--The GDI Package. Introduction. The Device Context. Obtaining the Device Capabilities. Saving DCs. Mapping Modes and Viewport versus Window Coordinates. GDI Objects--Rules of Use. Pens and Brushes. Pens. Brushes. Drawing Graphical Images. The Drawing Modes or ROPS and Clipping Regions. BitBlts. Creating Memory DCs. Pgm09a: Graphics Scrolling, Memory DCs, and Handling Display Changes. Setting Up an Applicationwide Information Class. Listing for File: SysInfo.h Pgm09a Excerpts. Listing for File: SysInfo.cpp Pgm09a Excerpts. Pgm09a Implementation. Listing for File: Pgm09aApp.cpp Pgm09a Excerpts. Listing for File: FrameWin.h Pgm09a Excerpts. Listing for File: FrameWin.cpp Pgm09a Excerpts. DIBs and Color Palettes. Listing for File: CDib.h Pgm09b Excerpts. Listing for File: CDib.cpp Pgm09b Excerpts. Handling Color--The Palettes. Methods to Display the DIB Image. The SetDIBitsToDevice Method. The Two Memory DC Methods. Method for Constructing Blazing Memory DCs for Game Animation. Bitmap Special Effects Displays. Pgm09b: DIB (bmp) File Display with Fancy Effects. Listing for File: resource.h Pgm09b Excerpts. Listing for File: Pgm09b.rc 0Pgm09b Excerpts. Listing for File: FrameWin.h 0Pgm09b Excerpts. 10. Using the Printer and Fonts. Introduction. The Design of Printing Operations. Printing Method 1: Printing a Mixed Page of Text and Graphics from the Screen Paint Function. Printing Method 2: Printing Multiple-Page Documents or Reports. Scaling the Page. Using Fonts. The Print Spooling Process. Pgm10a: Printing Method 1--Using a Dual- Purpose Render Function. Listing for File: resource.h Pgm10a Excerpts. Listing for File: Pgm10a.rc Pgm10a Excerpts. Listing for File: PrintDlg.h Pgm10a Excerpts. Listing for File: PrintDlg.cpp Pgm10a Excerpts. Listing for File: FrameWin.h Pgm10a Excerpts. Listing for File: FrameWin.cpp Pgm10a Excerpts. Modifying Data in the Print Dialog Box. The Printing Sequence for MFC. Printing Directly Within MFC's PrintPage. Font Details. The LOGFONT Structure. Text Output Functions for Variable-Width Fonts. Formatting Text. Creating a Program Editor with Print Support--Pgm10b. The Use of the CEdit Control as a Main Window. Editing Features Provided by CEdit Controls Implemented in Pgm10b. Listing for File: Pgm10b.rc Pgm10b Excerpts. Listing for File: resource.h Pgm10b Excerpts. Listing for File: FrameWin.h Pgm10b Excerpts. Listing for File: FrameWin.cpp Pgm10b Excerpts. 11. Decorations: Control Bars, Status Bars, Tool Boxes, and Child Client Windows. Introduction. The MFC Implementation of Decorations. Listing for File: resource.h Pgm11a Excerpts. Listing for File: Pgm11a.rc Pgm11a Excerpts. Listing for File: FrameWin.h Pgm11a Excerpts. Control Bar and Status Bar Construction. The Tool Box Control. Listing for File: CToolBox.h Pgm11a Excerpts. Listing for File: CToolBox.cpp Pgm11a Excerpts. MFC Message Map Response Entries for a Consecutive Range of Command IDs. Hiding and Showing Tool Boxes. Listing for File: FrameWin.cpp Pgm11a Excerpts. How to Have a Frame Window Dynamically Launch Client Windows. Listing for File: MainWin.h Pgm11a Excerpts. Displaying Messages on the Status Bar. The Drawing Process--Capturing the Mouse. Listing for File: MainWin.cpp Pgm11a Excerpts. Command Routing Notes. 12. The Multiple Document Interface. Introduction. MDI Terminology. Pgm12a: Overview. The MFC Implementation of MDI:Pgm12a. How to Have Multiple Resource Files and Read-Only Headers. Listing for File: Pgm12a.rc Pgm12a Excerpts. Listing for File: resource.h Pgm12a Excerpts. Listing for File: FrameWin.h Pgma12a Excerpts. Launching a MDI Child. Listing for File: FrameWin.cpp Pgm12a Excerpts. Converting ScrolWin from Pgm09a into a CMDIChildWnd. Listing for File: ScrolWin.rc Pgm12a Excerpts. Listing for File: ScrolWin.rh Pgm12a Excerpts. Listing for File: ScrolWin.h Pgm12a Excerpts. Listing for File: ScrolWin.cpp Pgm12a Excerpts. Converting Pgm11a's DrawWin to a CMDIChildWnd. Listing for File: DrawWin.rc Pgm12a Excerpts. Listing for File: DrawWin.rh Pgm12a Excerpts. Listing for File: DrawWin.h Pgm12a Excerpts. Listing for File: DrawWin.cpp Pgm12a Excerpts. 13. Using the Clipboard. Introduction. Handling Text with the Clipboard. Pgm13a: MDI Sample Clipboard Action Program. Listing for File: Pgm13a.rc Pgm13a Excerpts. Listing for File: Resource.h Pgm13a Excerpts. Listing for File: DrawWin.rc Pgm13a Excerpts. Listing for File: DrawWin.rh Pgm13a Excerpts. Listing for File: EditWin.rc Pgm13a Excerpts. Listing for File: EditWin.rh Pgm13a Excerpts. Listing for File: FrameWin.h Pgm13a Excerpts. Listing for File: FrameWin.cpp Pgm13a Excerpts. Listing for File: EditWin.h Pgm13a Excerpts. Listing for File: EditWin.cpp Pgm13a Excerpts. Handling Bitmaps on the Clipboard. DrawWin-- Graphical Cut/Copy/Paste. Listing for File: DrawWin.h Pgm13a Excerpts. 14. Sound, Animation Effects, Splash Screens, and Animated Presentations. Sound. Pgm14a--Playing wav Files--Using a Dialog Box as the Main Window. Listing for File: Pgm14aAp.cpp Pgm14a Excerpts. Animation. XOR Images and Transparent Backgrounds. Creating Faster Action--Beyond Windows 95 Timers. Pgm14b: Timer and Fast Animation. Listing for File: Pgm14b.rc Pgm14b. Excerpts. Listing for File: resource.h. Pgm14b. Excerpts. Listing for File: MainWin.h Pgm14b. Excerpts. Listing for File: MainWin.cpp. Pgm14b Excerpts. Splash Screens. Listing for File: Pgm14c.rc Pgm14c Excerpts. Listing for File: Splash.cpp. Pgm14c Excerpts. Animated Presentations. Listing for File: Demo.txt Pgm14d. Pgm14d Presentations. Listings for Files: Pgm14d.rc and resource.h Excerpts. Listing for File: FrameWin.h Pgm14d Excerpts. Listing for File: FrameWin.cpp Pgm14d Excerpts. Listing for File: Present.h Pgm14d Excerpts. Listing for File: Present.cpp Pgm14d Excerpts. Listing for File: DsplyObj.h.Pgm14d Excerpts. Listing for File: DsplyObj.cpp Pgm14d Excerpts. The try-catch and TRY-CATCH Logic for MFC. 15. The Document-View Architecture. Introduction. The Application Design. The Doc-View Implementation of Pgm15a. Designing a Serializable SalesData Class. Listing for File: SalesDat.h Pgm15a Excerpts. Listing for File: SalesDat.cpp Pgm15a Excerpts. MFC File Handling: The CFile Class. The MFC Document-View Implementation. Listing for File: AcmeDoc.h Pgm15a Excerpts. Listing for File: AcmeDoc.cpp Pgm15a Excerpts. The Resource File for Pgm15a and the Application and Frame Windows. Listing for File: Pgm15a.rc Pgm15a Excerpts. Listing for File: Pgm15a.RH Pgm15a Excerpts. The Application Class: Pgm15App. Listing for File: Pgm15aAp.cpp Pgm15a Excerpts. The Main Window Class--FrameWin. Listing for File: FrameWin.h Pgm15a Excerpts. Listing for File: FrameWin.cpp Pgm15a Excerpts. The CView Classes: AcmeView and AcmePlot. Listing for File: AcmeView.h Pgm15a Excerpts. Listing for File: AcmeView.cpp Pgm15a Excerpts. The Printing and Print Preview Processes of AcmeView. The AcmePlot View Class. Listing for File: AcmePlot.h Pgm15a Excerpts. Listing for File: AcmePlot.cpp Pgm15a Excerpts. Using the Document- View in the Multiple Document Interface: Pgm15b. Listing for File: Pgm15BApp.cpp Pgm15b Excerpts. Listing for File: FrameWin.h Pgm15b Excerpts. Listing for File: FrameWin.cpp Pgm15b Excerpts. Listing for File: ChildWin.h Pgm15b Excerpts. Listing for File: ChildWin.cpp Pgm15b Excerpts. Listing for File: Pgm15b.rc Pgm15b Excerpts. Your Next Step. Bibliography. C-Style. Visual C++. Create Your Own Class Library. Advanced Topics. Windows 95 and WIN32. Special C++ Topics; Magazines. Index. License Agreement and Limited Warranty.

Additional information

CIN0134595467G
9780134595467
0134595467
Programming with MFC for Windows 95 (Bk/CD-ROM) by BROQUARD
Used - Good
Hardback
Pearson Education (US)
1995-10-01
736
N/A
Book picture is for illustrative purposes only, actual binding, cover or edition may vary.
This is a used book - there is no escaping the fact it has been read by someone else and it will show signs of wear and previous use. Overall we expect it to be in good condition, but if you are not entirely satisfied please get in touch with us

Customer Reviews - Programming with MFC for Windows 95 (Bk/CD-ROM)