ebook img

MFC Black Book PDF

586 Pages·1997·4.902 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview MFC Black Book

To access the contents, click the chapter and section titles. MFC Black Book (Publisher: The Coriolis Group) Author(s): Al Williams ISBN: 1576101851 Publication Date: 12/01/97 Brief Full Advanced Search this book: Search Search Tips Introduction What's on the CD-ROM Acknowledgments Chapter 1—The Architecture The Players But My Program Doesn’t Work Like That! The Army Officer’s Aptitude Test Frame Windows About Message Maps Message Routing Document Templates The Details CWinApp CView CDocument CFrameWnd And Related Classes CDocTemplate Navigating Objects At Runtime Supporting Objects The CWnd Object CObject Support About Collections Using Templates Collection Details Summary Practical Guide To The Architecture Handling User Messages Creating A New Document Type Creating A Private Document Attaching Multiple Views To A Document Making Separate File|New Menus Preventing A New Document On Startup Parsing Command Line Parameters Calculating A View Size Using Typedef With Templates A 2D CArray Chapter 2—Serialization Persistence Vs. Storage A Quick Look At CArchive Inside File Open And Save Providing A Custom Dialog Another Example Inside CDib The Sample Application Serializing Objects Handling Multiple Versions Custom Serialization Simple Customizations Portability Issues Summary Practical Guide To Serialization Making A Class Serializable Customizing File Prompting Using Existing Or Custom File Code Creating Archives On Nonstandard Streams Reading Old File Versions Chapter 3—Printing MFC Printing—The Big Lie? The Dilemma A Complete Printing Example Customizing Print Preview Stripping Down Print Preview A Custom Print Preview Example Advanced Customizations Deriving The Class Preview Internals Creating An Editable Print Preview Summary Practical Guide To Printing Controlling The Print Dialog Scaling Printing Printing Something Different Printing Headers And Footers Customizing Print Preview’s Tool Bar Customizing Print Preview Chapter 4—Windows, Views, And Controls An Improved CListCtrl Altering The Control Showing The Selection Using The Modified List Dialog Controls General Window Operations Setting Styles And Initial Conditions Custom Window Classes Restricting Window Size Setting The Title Using UpdateCMDUI About CScrollView Adding Keyboard Scrolling Optimizing Scrolling Scrolling More Than 32K Units About CEditView Fixing CEditView CEditView And Splitters About CRichEditView Working With Owner-Draw Controls The MFC Solution: Self-Draw Other Solutions Using Self-Draw Controls Self-Draw List And Combo Boxes Self-Draw Menus Editing Tree Or List View Items In Dialogs Splitter Windows What The User Sees Programming Splitters Nesting Splitters Why Not Use CSplitterWnd? Summary Practical Guide To Windows, Views And Controls Setting Window Styles Removing The Document Title Setting A Custom Icon, Cursor, Or Background Setting A View To A Specific Size Making List Controls Select In All Columns Scroll Using The Keyboard Scrolling Many Items In Windows 95 Using Multiple CEditViews With The Same Document Setting Formatting For CRichEditView Using Owner-Draw (Or Self-Draw) Controls Effectively Using Label Editing For List And Tree Controls In Dialog Boxes Nesting Splitter Windows Chapter 5—Dialogs MFC And Dialogs Implementing Modeless Dialogs Using DDX/DDV About Data Validation Live Data Validation Other Data Map Tricks Adding Custom DDX/DDV Integrating With Class Wizard Using Dialog Bars Customizing Tool Bars Customizing Common Dialogs Customizing Step By Step An Example Color Dialog Customizing File Open Summary Practical Guide To Dialogs Creating Modeless Dialogs Updating DDX Variables On Changes Live Data Validation Writing Custom DDX/DDV Routines Integrating Custom DDX/DDV With Class Wizard Dialog Bars Vs. Tool Bars Customizing Common Dialogs Chapter 6—Property Sheets And Wizards Property Sheet Overview Using A Single Template Wizard Mode Modeless Property Sheets Custom App Wizards Creating A Wizard Customizing The Customizer Creating The Project Other Options Pressing On Debugging Wizards More Ideas For Wizards Summary Practical Guide To—Property Sheets And Wizards Creating A Property Sheet Creating A Wizard Using A Single Template Modeless Property Sheets Making Custom App Wizards Chapter 7—DLLs And MFC The Link Process Language Considerations Using An Ordinary DLL Creating An Ordinary DLL The Main File Exporting Functions Private And Shared Variables MFC DLLs What About OLE (Or ActiveX) DLLs? Summary Practical Guide To DLLs And MFC Determining What DLLs A Program Uses Or Functions A DLL Exports Linking At Build Time Linking At Runtime Creating A DLL Exporting Functions And Data Creating An MFC Extension DLL Optimizing DLL Load Addresses Chapter 8—ActiveX What Is An ActiveX Object? ActiveX And OOP ActiveX Encapsulation ActiveX Reuse ActiveX Polymorphism Fun With Interfaces Properties Methods Events Names Vs. Numbers ActiveX And MFC MFC And ActiveX Controls Using Control Wizard Code You Add Adding Properties Using Ambient Properties Adding Methods Adding Events Adding Property Sheets Examining The Generated Files Testing And Using The Control A Simple Control Using ActiveX Controls Summary Practical Guide To ActiveX Making An MFC Object With An IDispatch Interface Interpreting CLSIDs, PROGIDs, And The Registry Creating ActiveX Controls Debugging ActiveX Controls Allowing VB Or Web Developers To Initialize Your ActiveX Control What Is ATL? Adding Property Sheets Using ActiveX Controls Chapter 9—MFC And The Internet An Internet Primer TCP/IP Sockets Protocols Inside HTTP And URLs ISAPI ActiveX And Java MFC Sockets Using Archives With CSocket Going Deeper: CAsyncSocket Blocking Calls The Example The Basic Framework Adding A Custom Socket Other Considerations Socket Wrap Up Higher-Level Protocols The Link Checker Other Ideas ActiveX Internet Support The Transfer Control ISAPI Support The Plan A May-December Marriage A Quick Look At ISAPI Writing The HILO.DLL Server Inside The C++ DLL Installation And Distribution Future Directions Traditional MFC ISAPI Summary Practical Guide To MFC And The Internet Using Sockets Using Sockets As Streams Using WinInet With MFC The Internet Transfer Control Writing ISAPI Extensions And Filters With MFC When Not To Use ISAPI CBISAPI—An Object-Oriented Approach To ISAPI Chapter 10—MFC And Databases Database In Detail Adding More Features Adding And Deleting Records Not Using A View An Example Program Examining The Example Summary Practical Guide to MFC And Databases Starting A Database Application Selecting ODBC Or DAO Setting Up A Data Source Binding Database Fields To Recordset Variables Binding Recordset Variables To Controls Deleting Records Adding And Updating Records Working With Computed Fields Chapter 11—Multithreading Threads Vs. Processes Problems With Threads

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.