Arkoa homepage
About Arkoa News & Events Contact Us Careers
  Course Catalog : C/C++ Programming :

Visual C++ (6.0) and the MFC Library
5 days

Course # 08-0700


Description

This course provides participants with a hands-on introduction to building Windows applications. It makes full use of Visual C++ (6.0) tools. The exercises provide solutions to common problems. The course covers the MFC library, the Visual C++ Document-View-Frame model for building standard Windows applications, the MDI (Multiple Document Interface), and creation of OLE-compliant compound document files.

Audience
Programmers who will be building Windows applications using MFC.

Prerequisites
Participants must have practical experience programming in C++. Experience with the Windows SDK is helpful but not required.

Hardware and Software
Microsoft Visual C++ v6.0, running on Windows 95/98/ME/NT/2000. Pentium systems are recommended to shorten compile times. The systems should read a 3.5” solution disk or CD-ROM.

 


Format

  • Presentation
  • Hands-on

Objectives
After completing this course, participants should be able to:

  • Use the AppWizard and other Visual C++ tools
  • Build user interfaces using views, menus, dialog boxes, and controls
  • Describe the Windows event-driven application model as seen through the Visual C++ environment
  • Use ActiveX controls in Windows applications
  • Use ODBC for database access with Visual C++
  • Describe MFC's document/view architecture
  • Design advanced windows

Topics


Windows Application Management

  • Application Management Under Windows
  • Windows API Programming
  • MFC Windows Class Hierarchy

Introduction to the Tool

  • AppWizard Overview
  • The Simple Application
  • Project | Add to Project | New
  • Project | Add to Project | Files
  • Build | Build, Build | Rebuild All, and Build | Execute
  • File | Open Workspace and File | Close Workspace
  • AppWizard
  • Executing the Simple Application

Other Wizards and Debugging

  • ClassWizard
  • The Message Map
  • Resource Editors
  • The Debugger
  • Using The Integrated Debugger
  • Setting Breakpoints
  • Edit and Continue
  • Project Settings

Managing Resources

  • Resource Defined
  • Resource Files, Compilation, and Binding
  • Resource View
  • Inserting New Resources

Menus

  • The Menu Editor
  • Menus and the Keyboard Interface

Events and Handlers

  • Events and Handlers
  • The ClassWizard
  • Handling Options and Implications
  • Handling Menu Events

Dialog Boxes

  • Dialog Boxes
  • The Dialog Editor
  • Creating a Dialog Class
  • Displaying the New Dialog Box
  • Automatic Data Exchange
  • Modeless Dialogs
  • Common Dialogs

 

 


Basic Controls

  • Accessing Controls from the Dialog Class
  • Static Text Controls
  • Edit Box Controls
  • Push Button Controls
  • Static Text Example
  • Check Box Controls
  • Radio Button Controls
  • Group Box Controls
  • Check Box and Radio Button Example
  • Picture Box Controls

List Box Controls

  • List Box Controls
  • Combo Boxes

Windows Common Controls

  • Progress Bar Control
  • Slider Control
  • Spin Control
  • List Control
  • Tree View Control

Using ActiveX Controls

  • ActiveX Components
  • Installing ActiveX Components
  • Adding ActiveX Components to a Project
  • MSFlexGrid Control

Database Access with ODBC

  • Rationale for Using Open Database Connectivity
  • MFC Classes for ODBC
  • ODBC Configuration For Windows
  • MFC ODBC Example

Documents and Views

  • The Document-View Architecture
  • Multiple Views of Data
  • Finding a View’s Document and Vice Versa
  • Processing User Input
  • Painting in Windows

Advanced Window Design

  • Interacting with the Framework
  • SDI and MDI Applications
  • MFC Architecture
  • Splitter Windows
  • Window Design Options