ABOUT2: Demonstrates Simple Dialog Box

ABOUT2 is a re-implementation of the ABOUT program in "Programming Windows" by Charles Petzold. This sample was written using C++ and the Microsoft Foundation Class (MFC) libraries. ABOUT2 allows you to draw either a rectangle or an ellipse in one of several colors in the client area of an application's main window. The source code illustrates the following concepts:

Simple MFC application structuring

Simple dialog box initialization and management

Graphics device interface (GDI) wrapper classes

ABOUT2 requires special MFC libraries and include files; see the "MFC Libraries" and "MFC Include Files" abstracts to copy these files to your development system. ABOUT2 uses the following libraries: SLIBCEW.LIB (C Windows run-time library), LIBW.LIB (Windows library), and either SAFXCW.LIB (MFC small-model Windows retail library) or SAFXCWD.LIB (MFC small-model Windows debug library).

To build this application, you must have Microsoft C/C++ version 7.0 installed on your system.

{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the about2 project." /C"samples}