Call : (+91) 968636 4243
Mail : info@EncartaLabs.com
EncartaLabs

MFC Windows Programming for C++ Programmers

( Duration: 5 Days )

The MFC Windows Programming for C++ Programmers training course provides a thorough presentation of Windows programming via an object oriented approach using Visual C++ and the Microsoft Foundation Class Library. The course consists of two modules. The first module covers the essential elements of Windows programming via an object oriented approach using Visual C++ and the MFC. The basic structure of Windows programs and the MFC encapsulation is explained, and then the power of MFC and the Visual C++ development environment is exploited to build working Windows applications. You will gain experience using the Visual Studio, AppWizard, and Class Wizard. Fundamental Windows programming topics are covered, including the mouse, keyboard, Graphics Device Interface, controls, dialog boxes, menus, toolbars and status bars. The document/view architecture is introduced.

A fundamental approach is taken to understanding MFC, building programs by making direct calls to MFC before using automated tools. The second module covers intermediate topics in MFC Windows programming. Mouse programming techniques are discussed, including rubber banding and drag and drop. Additional topics in dialog boxes are covered, including the common dialogs and programming modeless dialogs. Fonts are discussed. MFC services are covered, including runtime type information, serialization, diagnostics and exceptions.

The MFC collection classes are surveyed, including the template collection classes. Document/view architecture is presented in greater depth, including MDI and the role of document templates in dealing with multiple view types and multiple document types. You are introduced to a number of advanced topics, including the MFC database classes, the Win32 common controls, and DLLs. OLE and ActiveX are introduced, including use of ActiveX controls. Extensive programming examples and exercises are provided using Visual C++.

  • Knowledge of C++. Previous SDK Windows programming experience is not required.

COURSE AGENDA

1

Introduction to Windows Programming and MFC

  • Structure of Windows Programs
  • Application Frameworks
  • Class Hierarchy of the MFC Library
  • CWinApp and CFrameWnd Classes
  • Event-Driven Programming
  • Windows Messages
  • Message Maps
2

User Input in Windows

  • Mouse
  • Using ClassWizard
  • Using Spy++
  • Invalidating the Client Area
  • Keyboard
3

Graphics Device Interface

  • Device Contexts
  • GDI Object Creation and Cleanup
  • Colors
  • Pens and Brushes
  • Drawing with Text
4

More About Windows

  • MFC Encapsulation of Windows
  • Window Creation and Destruction
  • Focus and Activation
  • Sending and Posting Messages
  • Overlapped, Popup and Child Windows
  • Child Windows and Owned Windows
5

Document/View Architecture

  • Using AppWizard
  • Document and View Classes
  • Document Templates
  • SDI and MDI Applications
  • Document/View Program Structure
  • Synchronizing Document and Views
  • Making a Document Persistent
6

Menus and Resources

  • Resources in Windows Programs
  • Developer Studio Resource Editors
  • String Tables
  • Menus and Command Messages
  • Update Command UI Messages
  • Keyboard Accelerators
7

Controls and Dialogs

  • Modal and Modeless Dialog Boxes
  • Resources and Controls
  • Controls as Child Windows
  • CDialog Class and Programming a Modal Dialog
  • Designing Dialogs with Dialog Editor
  • Using ClassWizard
  • Dialog Data Transfer
8

Toolbars and Status Bars

  • Command Messages
  • MFC Control Bar Classes
  • Toolbars
  • Idle Time Processing
  • Tooltips
  • Status Bars
9

Mouse Techniques

  • Mouse Messages
  • Mouse Handler Functions
  • Capturing the Mouse
  • Mouse Cursor
  • Rubberband Drawing
  • Drag and Drop
10

MFC Services

  • General Purpose Classes
  • Serialization and Persistent Objects
  • Diagnostics
  • Exceptions
  • Runtime Type Information in MFC
11

MFC Collection Classes

  • List, Dynamic Array and Map Classes
  • Making Collection Objects Persistent
  • MFC Template Collection Classes
12

More About Dialog Boxes

  • Modeless Dialogs as Child Windows
  • Communicating Between a Dialog and its Parent
  • Programming a Modeless Dialog
  • Combo Boxes and List Boxes
  • Common Dialogs
  • Fonts
  • Common Font Dialog
13

More About Document/View

  • Multiple Document Interface
  • MFC Classes that Implement MDI
  • Implementing MDI Applications with MFC
  • Multiple View Types
  • Special View Classes
  • Form View Based Applications
14

Windows Common Controls

  • Win32 Common Controls
  • MFC Common Control Classes
  • Progress and Slider Controls
  • Tree View Control
15

MFC Database Classes

  • ODBC Architecture
  • MFC Classes for ODBC
  • Record Field Exchange
  • Scrolling in a Recordset
  • Choosing a Data Source at Runtime
  • Record Sets and Record Views
  • Data Access Objects
  • MFC Classes for DAO
16

Dynamic Link Libraries

  • What is a Dynamic Link Library (DLL)
  • Creating a DLL
  • Debugging a DLL
17

Introduction to ActiveX

  • COM, OLE and ActiveX
  • ActiveX Controls

Encarta Labs Advantage

  • One Stop Corporate Training Solution Providers for over 6,000 various courses on a variety of subjects
  • All courses are delivered by Industry Veterans
  • Get jumpstarted from newbie to production ready in a matter of few days
  • Trained more than 50,000 Corporate executives across the Globe
  • All our trainings are conducted in workshop mode with more focus on hands-on sessions

View our other course offerings by visiting https://www.encartalabs.com/course-catalogue-all.php

Contact us for delivering this course as a public/open-house workshop/online training for a group of 10+ candidates.

Top
Notice
X