Chapter 14. Windows Programming with the Microsoft Foundation Classes

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • The basic elements of an MFC-based program

  • How Single Document Interface (SDI) applications and Multiple Document Interface (MDI) applications differ

  • How to use the MFC Application Wizard to generate SDI and MDI programs

  • Files generated by the MFC Application Wizard and their contents

  • How an MFC Application Wizard-generated program is structured

  • The key classes in an MFC Application Wizard-generated program, and how they are interconnected

  • The general approach to customizing an MFC Application Wizard-generated program

In this chapter, you start down the road of serious Windows application development using the MFC. You'll get an appreciation of what code the Application wizard generates for a Microsoft Foundation Class (MFC) program and what options you have for the features to be included in your code.

You'll be expanding the programs that you generate in this chapter by adding features and code incrementally in subsequent chapters. You will eventually end up with a sizable, working Windows program that incorporates almost all the basic user interface programming techniques you will have learned along the way.

THE DOCUMENT/VIEW CONCEPT IN MFC

When you write applications using MFC, it implies acceptance of a specific structure for your program, with application data being stored and processed in a particular way. This may sound restrictive, but it really isn't for the most part, and the ...

Get Ivor Horton's Beginning Visual C++® 2010 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.