Master MFC development with professional-level
instruction-direct from Microsoft
Extend your object-oriented programming skills with this
MICROSOFT MASTERING learning system. You'll work at your
own pace-learning how to use the Microsoft Foundation Class
(MFC) library and the Visual C++ development system to
write custom Microsoft Windows-based applications faster.
The text and the companion CD-ROM work hand in hand,
helping you master essential MFC development concepts and
providing critical skill-building practice. By the end of
the course, you've learned how to create your own
Windows-based applications-ready to run!
- Enhance the user interface with dynamic menus,
graphical status bars, toolbars, and dialog boxes
- Implement view classes by writing a browser-style
application
- Learn how to use the debugger and handle errors and
exceptions
- Use Windows common controls, Microsoft Internet
Explorer controls, and Microsoft ActiveX® controls to
quickly add functionality to your application
- Discover how MFC simplifies the task of creating your
own ActiveX controls
- Use OLE DB templates and ActiveX Data Objects (ADO) to
access and manipulate data sources
- Build MFC applications that communicate across the
Internet
MASTER IT WITH CONTENT-RICH TRAINING. With MICROSOFT MASTERING you set the pace-learning the
skills you need, just when you need them. The book drives
the instruction-helping you build proficiency with
essential concepts and techniques and guiding you through
the
lab exercises on CD-ROM. Plus, each chapter features
self-check questions and insightful code examples to
reinforce learning. You get professional-level
instruction
direct from MSDN™ Training-Microsoft's essential
resource for developer training.
INCLUDED ON CD-ROM!
- Hands-on, skill-building lab exercises
- Multimedia demonstrations and animations
- Hundreds of lines of ready-to-use sample code
- Complete sample applications
- Microsoft Internet Explorer 5 browser software (to view
files)
Contents
CHAPTER 1: Introduction to Visual
C++ 6.0
- Overview of Visual C++ and MFC
- Enhancements to Visual C++
- Enhancements to MFC
- Lab 1.1: Creating an MFC-based Application
CHAPTER 2: Debugging and Error Handling
- Debugging
- Handling Errors and Exceptions
- Lab 2.1: Using Edit and Continue
- Lab 2.2: Implementing Exception Handling
- Self-Check Questions
CHAPTER 3: Enhancing the User Interface
- Enhancing Menus
- Enhancing Toolbars
- Enhancing Status Bars
- Enhancing Dialog Boxes
- Lab 3.1: Creating a Dynamic Menu
- Lab 3.2: Customizing the Common Dialog Class
- Using Modeless Dialog Boxes
- Using Dialog Bars
- Using Rebars
- Lab 3.3: Adding a Modeless Dialog Box
- Lab 3.4: Adding a Dialog Bar
- Lab 3.5: Adding a Rebar
- Sample Applications
- Self-Check Questions
CHAPTER 4: Implementing View Classes
- Introduction to Views
- Adding Multiple Views
- Adding Scrolling Views
- Implementing Splitter Windows
- Lab 4.1: Adding a Splitter Bar
- Implementing Form Views
- Implementing Control Views
- Creating an Explorer-Style Application
- Coordinating Multiple Interrelated Views
- Lab 4.2: Adding Open File Dialogs and a Rich Edit
View
- Lab 4.3 (Optional): Building a Text Viewer
- Sample Applications
- Self-Check Questions
CHAPTER 5: Using Controls
- Windows Common Controls
- Internet Explorer 4.0 Common Controls
- ActiveX Controls
- Controls Supplied by MFC
- Lab 5.1: Creating Controls Dynamically
- Lab 5.2: Adding a Progress Control
- Lab 5.3: Using the Calendar Control
- Sample Applications
- Self-Check Questions
CHAPTER 6: Creating ActiveX Controls
- Overview of ActiveX Controls
- ActiveX Control Properties
- ActiveX Control Methods
- ActiveX Control Events
- Implementing ActiveX Control Property Pages
- Creating an Enumerated Property
- Lab 6.1: Building an ActiveX Control Using an Existing
Class
- Data Binding in an ActiveX Control
- Optimizing ActiveX Controls
- Debugging and Handling Errors in ActiveX
Applications
- Sample Applications
- Self-Check Questions
CHAPTER 7: Using OLE DB Templates for Data Access
- Overview of OLE DB
- Introduction to OLE DB Templates
- Using CAccessor to Create a Consumer Application
- Lab 7.1: Using CAccessor
- Using CDynamicAccessor to Create a Consumer
Application
- Lab 7.2: Using CDynamicAccessor
- Using CManualAccessor to Create a Consumer
Application
- Sample Applications
- Self-Check Questions
CHAPTER 8: Creating
ADO Database Applications
- Introduction to ADO
- Using Data Controls
- Using the Data-bound Dialog Box
- Performing Queries
- Lab 8.1: Using the Data-Bound Dialog Box
- Sample Applications
- Self-Check Questions
CHAPTER 9: Building Internet Applications
- Basic Internet Concepts
- Using the Internet Explorer Object
- Using the Web Browser Control
- Using the WinInet Classes
- Using the WinSock Classes
- Lab 9.1: Using the Web Browser Control
- Lab 9.2: Using the HTTP WinInet Classes
- Lab 9.3: Adding an HTML View
- Sample Applications
- Self-Check Questions
CHAPTER 10: Printing and Print Preview
- Adding Default Printer Support
- Enhancing Printer Support
- Lab 10.1: Adding Print and Print Preview to
TextView
- Sample Applications
- Self-Check Questions
APPENDIX A: Self-Check Answers