Chapters 20 and 21 contained information on various Windows building blocks such as menus, dialog boxes, keyboard accelerators, and so on. In Chapter 22, you learned the theory and specifications of the Microsoft Foundation Class (MFC) library. This chapter combines all of previously discussed Windows building blocks and builds applications using 32-bit object-oriented MFC tools.
In this chapter, you will find four complete MFC library Windows applications that will help you understand the MFC library even better. The examples in this chapter are graded—that is, each example builds upon the knowledge you gain from the previous example. It is imperative, therefore, that you study each of the applications in the order in which they appear. By the time you get to the fourth application, you will be working with a complex Windows application that uses several Windows resources, depends heavily on the MFC library, and produces a useful commercial-grade application.
The program listings for each application are quite long. If you are entering them from the keyboard, do so carefully. Remember, as you type that these listings are still far shorter than their procedure-oriented counterparts from Chapter 21.