Chapter 12Windows Programming with the Microsoft Foundation Classes (MFC)

  • The basic elements of an MFC-based program
  • The difference between Single Document Interface (SDI) applications and Multiple Document Interface (MDI) applications
  • How to use the MFC Application Wizard to generate SDI and MDI programs
  • The files generated by the MFC Application Wizard and what they contain
  • How an MFC Application Wizard-generated program is structured
  • The key classes in an MFC Application Wizard-generated program, and how they are interconnected
  • How to customize an MFC Application Wizard-generated program

You can find the wrox.com code downloads for this chapter on the Download Code tab at www.wrox.com/go/beginningvisualc. The code is in the Chapter 11 download and individually named according to the names throughout the chapter.

THE MFC DOCUMENT/VIEW CONCEPT

When you write applications using the MFC, it implies acceptance of a specific structure for your program, with application data stored and processed in a particular way. This may sound restrictive, but it really isn’t for the most part, and the benefits in speed and ease of implementation far outweigh any disadvantages. The structure of an MFC program incorporates two application-oriented entities — a document and a view — so let’s look at what they are and how they’re used.

What Is a Document?

A document is a collection of data in your application with ...

Get Ivor Horton's Beginning Visual C++ 2013 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.