Skip to main content

Instructor-led training

MFC Windows Programming for C++ Programmers Training in Horseheads, New York

This course is a very thorough presentation of Windows programming via an object oriented approach using Visual C++ and the Microsoft Foundation Class Library.

What you'll learn

This course is a very 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. The student will gain experience using the Visual Studio, AppWizard, and ClassWizard. 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 rubberbanding 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. The student is introduced to a number of advanced topics, including the MFC database classes, the Win32/64 common controls, and DLLs. OLE and ActiveX are introduced, including use of ActiveX controls. Extensive programming examples and exercises are provided using Visual C++ 2008 (Library mfc90.dll). Besides doing standalone exercises, during the course the student will develop several cumulative Windows applications. A disk is provided containing all the examples and laboratory exercises in the course.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Horseheads, New York or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

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

Course Outline

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

User Input in Windows
Mouse
Using ClassWizard
Using Spy++
Invalidating the Client Area
Keyboard

Graphics Device Interface
Device Contexts
GDI Object Creation and Cleanup
Colors
Pens and Brushes
Drawing with Text

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

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

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

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

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

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

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

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

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

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

Windows Common Controls
Win32 Common Controls
MFC Common Control Classes
Progress and Slider Controls
Tree View Control

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

Dynamic Link Libraries
What is a Dynamic Link Library (DLL)
Creating a DLL
Debugging a DLL

Introduction to ActiveX
COM, OLE and ActiveX
ActiveX Controls
 

Why MFC takes deliberate study

MFC is a framework that calls your code, so the hard part is knowing where the framework expects your code to go. Most of the syllabus is about those hook points.

  • Event-driven flow. The course starts with Windows messages, message maps, CWinApp and CFrameWnd, and invalidating the client area. Until you see how a mouse click or keypress becomes a handler call, later topics look like magic.
  • Resource ownership. The GDI material covers device contexts, GDI object creation and cleanup, pens, brushes and colors. A common mistake is treating these as ordinary C++ objects when the underlying handles must be released correctly.
  • Document/view. This is the biggest conceptual step. It covers document templates, SDI versus MDI, synchronizing documents and views, and making a document persistent. Later sections return to it with multiple view types, form views and special view classes.
  • Dialog lifetime. Modal dialogs, modeless dialogs as child windows, dialog data transfer, and communication between a dialog and its parent behave differently, and mixing them up causes subtle bugs.

A frequent misconception is that the wizards write the program. The course builds applications with direct MFC calls first, then introduces AppWizard and ClassWizard, so you can read and repair generated code. Spy++ is included for inspecting messages.

The second half moves to services and integration: serialization, diagnostics, exceptions, runtime type information, collection classes, ODBC and DAO record sets, DLLs, and an introduction to COM, OLE and ActiveX controls.

Who it suits and what to take around it

The course is rated general level. It expects working knowledge of C++ but no prior SDK-style Windows programming. It suits developers who build, maintain or extend existing MFC desktop applications, and teams taking over such code.

If your C++ is rusty, C++ Programming covers the language foundations that MFC's class hierarchy and macros assume.

MFC's collection classes (list, array, map and the template collections) are covered here. A team that wants the standard library's approach can pair this with C++ Standard Template Library to compare the two.

For organizations that are moving MFC code toward managed code, .NET Framework Using C++/CLI is a logical follow-on. It covers working across native and managed code. The full list is in the C++ Programming courses and learning guide.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • A multi-document viewer. A team might maintain an MDI application where one document type opens in several view types. The document templates, multiple view types, form views and synchronizing documents and views all apply. Serialization handles saving and loading.
  • A data-entry front end. For example, a department tool may present database records through form views. This draws on the ODBC architecture, record field exchange, scrolling in a recordset, choosing a data source at runtime, and the common controls such as tree views.
  • An interactive drawing tool. A team might add rubberband selection, drag and drop, and a custom cursor to a graphics tool, with toolbars, tooltips and status bars around it. This uses mouse capture, the GDI topics, and command messages with update-command-UI handlers.

AI coding assistants with MFC code

AI coding assistants can help with explaining an unfamiliar message map, summarizing what a wizard-generated class does, drafting a dialog data-exchange routine, or turning a compiler error into plain language. They are useful for orienting yourself in a large legacy code base.

They tend to fail in specific ways on these topics:

  • They may suggest frameworks or APIs that do not fit the MFC version your project builds with.
  • They can leave GDI objects selected into a device context or never released, which the syllabus's cleanup topic addresses.
  • They can wire handlers incorrectly, putting message map entries or command-update logic in the wrong class, or mixing up modal and modeless dialog lifetimes.
  • They may produce serialization code that does not match an existing file format.

To verify, run the code and watch the actual messages in Spy++. Use MFC's diagnostics and exception handling for checks, and test persistence by saving and reloading documents. Review every change against the document/view structure the application already uses.

Frequently asked questions

What level is this course and what do I need beforehand?

It is general level. You need knowledge of C++. Previous SDK-style Windows programming experience is not required, because the course starts with the structure of Windows programs and messages.

Does it teach with wizards or by hand?

Both, in sequence. The course builds programs with direct MFC calls first, then introduces AppWizard and ClassWizard so you understand the code they generate.

What does the second half of the course cover?

Intermediate and advanced topics: mouse techniques such as rubberbanding and drag and drop, common dialogs, fonts, serialization, diagnostics, exceptions, collection classes, MDI and multiple view types, common controls, ODBC and DAO database classes, DLLs, and an introduction to ActiveX.

Can this be delivered privately for our team?

Yes. HSG delivers private training onsite at your location or live online.

Can the content be customized to the versions we use?

Private courses can be tailored to the technology versions an organization uses, including current releases. You can describe your environment through the training proposal request.

HSG Technology & Workforce Intelligence

Most relevant to MFC Windows Programming for C++ Programmers

  • Software developers, employment: 80 (May 2025; U.S. Bureau of Labor Statistics)
  • Software developers, concentration relative to the U.S. (location quotient): 0.23 (May 2025; U.S. Bureau of Labor Statistics)
  • Computer and mathematical occupations, employment: 480 (May 2025; U.S. Bureau of Labor Statistics)
  • Computer and mathematical occupations, concentration relative to the U.S. (location quotient): 0.42 (May 2025; U.S. Bureau of Labor Statistics)

Selected for this course from the verified data in the section below.

80Software developersMay 2025
0.23Concentration vs. U.S.1.00 = U.S. average; May 2025
$79,250Median annual wage (computing jobs)May 2025
4Verified local technology sourcesemployers, colleges, user groups

Key findings for C++

  • The official data counts occupations, industries and degrees, not programming languages, so it does not measure C++ use. A few specific items do mention it: two Corning Incorporated postings in nearby Corning, NY (checked 2026-11-29) name C++ among required or requested skills, and SUNY Corning Community College lists C/C++ in both its credit and career-training offerings. These are a few observations, not a measure of the whole market.
  • In our reading, C++ fits the area's engineering and manufacturing base. Manufacturing employment had a concentration of 1.67 relative to the U.S. (2024 annual average), and industrial engineers 1.61 (May 2025). C++ is common in embedded, simulation and equipment-control work.
  • Skills worth building: modern C++ (smart pointers, move semantics, the STL), plus Python, which appears beside C++ in both the Corning postings and the career-training listings.
  • Computer and mathematical occupations employed 480 people in the Elmira, NY metropolitan area in May 2025, with a median annual wage of $79,250 against $47,850 for all occupations. Their concentration relative to the U.S. was 0.42, so this is a small technology labor market.
  • Among the area's bachelor's degree holders, 3.3% hold a degree in computers, mathematics or statistics (ACS 2020-2024 5-year), against 5.1% for the United States.

Workforce: occupations, industries and pay

These figures describe occupations, not C++ use. Computer and mathematical occupations employed 480 people in the Elmira, NY metropolitan area in May 2025 and paid a median of $79,250, well above the $47,850 median for all occupations. Software developers numbered 80, a concentration of 0.23 relative to the U.S. The area's relative strength is in making things: production occupations had a concentration of 1.59 and industrial engineers 1.61. In our reading, C++ work here is more likely to sit inside engineering and manufacturing teams than in dedicated software companies.

Talent and education

Of the area's bachelor's degree holders, 9.9% hold an engineering degree and 3.3% a degree in computers, mathematics or statistics (ACS 2020-2024 5-year). The U.S. figure for computing-related degrees is 5.1%. Elmira College awarded one mathematics and statistics degree in the 2023-24 academic year, a small signal about local supply. For C++ learners, this suggests that engineers who add programming, and programmers who learn engineering domains, may be an important pipeline.

Economy and investment

Manufacturing employed 4,624 people in the area (private sector, 2024 annual average), down 9.2% from the 2019 annual average. Computer and electronic product manufacturing, a smaller group at 387 jobs, grew 10.9% over the same period and had an average weekly wage of $2,105, against $1,177 for all industries. Real gross domestic product in the area was 3.2% lower in 2023 than in 2018. Federal grants obligated in the area were $36.9 million in FY2025. These are signals worth watching, not promises.

How Elmira compares

AreaBachelor's or higher (ACS 2020-2024 5-year)Computing degrees (share of bachelor's holders) (ACS 2020-2024 5-year)Computer and math jobs, LQ (May 2025)Software developers, LQ (May 2025)Computer systems design industry, LQ (2024 annual average)
Elmira, NY27.2%3.3%0.420.230.19
United States35.7%5.1%1.001.001.00
New York State40.2%5.0%0.961.080.79
Columbus, IN34.1%5.2%0.550.530.60
Kokomo, IN20.8%3.2%0.250.150.14
Midland, MI36.6%5.1%0.690.410.07
Casper, WY27.7%3.5%0.330.350.25
Great Falls, MT28.4%2.9%0.440.180.21

LQ (location quotient) compares the share of jobs in an occupation or industry with the national share; 1.00 equals the U.S. average.

Each column uses one period for every area; "not published" means the publisher released no estimate, not zero.

Skills and technologies to build

This part is HSG's interpretation of the data above for people learning C++. The official sources measure occupations, industries and degrees, not programming languages.

Why C++ fits this regional economy. In our reading, the area's strong occupations and industries point to a use for C++ where software meets physical products. Examples are modeling and simulation tools, automated equipment and embedded control. Manufacturing (concentration 1.67 relative to the U.S., 2024 annual average) and computer and electronic product manufacturing (1.74) are the industries where such work is most plausible. Computer systems design is a thin local industry, with a concentration of 0.19.

Evidence of C++ in the area. Corning Incorporated's Solid Mechanics Modeling Engineer posting in nearby Corning, NY asks for programming and scripting skills in Python, MATLAB, or C++. Its Staff Engineer, Automated Systems and Software posting, also in Corning, requires proficiency with C#, C/C++, Vue and Python. Both were checked 2026-11-29, and we could not confirm either is still open. On the education side, SUNY Corning Community College's Computer Science program requires CSCS 1320 C/C++ Programming, and its career-training page lists a C++ course with AI-assisted coding and a Back-End Foundations: C++ and Python course. Postings show hiring demand, and course listings show training supply. Neither shows how widely C++ is used.

Frameworks and skills worth investigating. The standard path runs from fundamentals through object-oriented design to templates and the STL, then modern C++ with smart pointers and lambdas. For engineering-oriented work, CMake builds, GoogleTest or Catch2 testing and sanitizers are worth investigating, and Qt where desktop tools matter. The C++ Core Guidelines and cppreference are the working references, and the ISO C++ Foundation tracks the standard.

Emerging areas worth watching. C++20 concepts, ranges, coroutines and modules, along with C++23 library additions, are worth watching. So is industry and government attention to memory safety, including guidelines, hardening and sanitizers. Teams maintaining older code may find that modernizing pre-C++11 code is a practical first project.

Improving your prospects. Both Corning postings list C++ beside other languages, so pairing it with Python for scripting and analysis is a sensible step. Where a posting also names C#, C# is worth adding. Engineers who already know C can move to C++ quickly. Domain knowledge in simulation, automation or manufacturing processes may matter as much as the language. See the C++ learning guide, or request a training proposal for a team.

HSG courses for these skills. Introduction to C++ for Absolute Beginners covers first programs, I/O, variables and data types. C++ Programming for C Programmers covers classes, inheritance and polymorphism. C++ Standard Template Library covers template functions, template classes and specialization. Modern C++ Programming using C++11/C++14 covers move semantics, range-based for-loops, initializer lists and variadic templates. For experienced developers, Advanced C++ for Experts covers templates, function objects and design patterns. Training is also available for nearby Horseheads and Elmira.

About this data: sources, periods and limitations
  • Values are by the area each publisher reports (metropolitan area, county or state), retrieved from the publishers and checked by HSG.
  • Leading indicators, such as graduates and federal funding, are signals of possible future activity. They do not guarantee employment.
  • Bachelor's degree holders whose degree is in computers, mathematics or statistics: American Community Survey 5-year estimate (survey-based; margin of error at 90% confidence). Fields of bachelor's degrees reported by people aged 25 and over (one person can report more than one field). Computers, mathematics and statistics.
  • Bachelor's degree holders whose degree is in engineering: American Community Survey 5-year estimate (survey-based; margin of error at 90% confidence). Fields of bachelor's degrees reported by people aged 25 and over (one person can report more than one field). Engineering.
  • All occupations, computer and mathematical occupations: Survey-based estimate for the May reference period (3-year sample). Annual median wage is capped at the published top code. Covers wage and salary workers; excludes the self-employed.
  • Computer and mathematical occupations, software developers, industrial engineers and others: Survey-based estimate for the May reference period (3-year sample). Covers wage and salary workers; excludes the self-employed.
  • All industries: Employment covered by unemployment insurance, by place of work; excludes the self-employed. Industry 10 (NAICS).
  • Manufacturing: Employment covered by unemployment insurance, by place of work; excludes the self-employed. Industry 31-33 (NAICS).
  • Manufacturing: Employment covered by unemployment insurance, by place of work; excludes the self-employed. Industry 31-33 (NAICS). Location quotient relative to the U.S.
  • Computer and electronic product manufacturing: Employment covered by unemployment insurance, by place of work; excludes the self-employed. Industry 334 (NAICS).

Training locations

MFC Windows Programming for C++ Programmers training across the U.S. and beyond.

We provide private MFC Windows Programming for C++ Programmers training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all MFC Windows Programming for C++ Programmers training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.