Axian Software Consulting and Training

Microsoft Foundation Classes (MFC) Fast Start

 

Call 644-6106, ext. 107

or

e-mail

for course registration or more information

 

 

Overview

MFC Fast Start is designed to lay the foundation for developing applications written for the Windows operating system (Win32) using the Microsoft Foundation Class Library and Visual C++ 5.X with its associated wizards, resources and tools.
 
Upon completion of the course, students should be able to:
  • Use AppWizard and ClassWizard to construct windows applications using foundation classes.
  • Understand the Document/View architecture of MFC and how applications can be organized around this kind of implementation.
  • Map a variety of messages to class members using AppWizard.
  • Draw images using basic MFC functions and objects.
  • Construct and use resources, including menus, dialog boxes, OCX controls, property sheets, toolbars, status bars, and the Rich Edit Control.
  • Understand how to update the user interface to correspond to program conditions.
  • Incorporate advanced features such as splitter windows and file "drag-and-drop".
  • Implement simple Registry usage.
  • Implement "serialization" of data in Document classes.
  • Design both Single Document and Multiple Document interface applications.
  • Implement simple printing and print preview functions.
  • Use varied View classes, such as the CFormView class and the CScrollView class.
 

Course prerequisites

C++ language proficiency and a knowledge of Windows API programming.

 

Course outline

Introduction to Windows Programming Using the Microsoft Foundation Class Library.
Wizards
"Hello World", MFC Style
Documents and Views
Drawing in the View Window
OnDraw
CClientDC
The Graphic Editor and Resources
Diagnostic Macros
Message Maps
Class Member Objects
Points, Rects, and Size Objects
Invalidating a Window
Using ClassWizard to Map Messages
Mapping Modes
CScrollView
OnPrepareDC( )
Strings
Device Contexts
GDI Objects
Long-lived GDI Objects
Fonts
Modal Dialog Boxes
Resource Editing
Dialog Classes
Dialog Data Members
Message Mapping
Activation
Identifying Controls
Setting Background Color
Window 95/NT 4.0 Common Controls
Progress Indicator
Trackbar (Slider)
Spinner
Common Dialog Boxes in MFC
CCommonDialog
CFileDialog
Members
Invocation
OLE Controls (OCX’s)
Properties, Methods, and Events
The Component Gallery
Inserting Controls into Project
Main Frame Windows
Menus
Keyboard Accelerators
Command Routing
Updating the User Command Interface
MFC’s Built-in Menus
Views with Data
CRichEditView
Members
Using
Property Sheets
Building
Member Data Objects
Updating Data
Invocation
Toolbars
Toolbar Bitmaps
Button States
Command Messages
Updating the User Command Interface
Tool Tips
Using the Registry
Status Bars
Document Functions
GetDocument
UpdateAllViews
OnNewDocument
OnInitialUpdate
DeleteContents
Serialization
Disk Files and Archives
The Serialize Function
The "Dirty" Flag
Drag & Drop
Document Templates
Multi-Document Interface
MDI Template
MDI Frame and Child Windows
Print
Standard Windows Printing
Printer Device Context
Reading the Printer Rectangle
Print Preview
Splitter Windows
CFormViews and Visual Basic Impersonations
(Dialog-based Applications)