Common Dialog Classes

OverviewHow Do I

In addition to class , MFC supplies several classes derived from CDialog that encapsulate commonly used dialog boxes, as shown in the following table. The dialog boxes encapsulated are called the “common dialog boxes” and are part of the Windows common dialog library (COMMDLG.DLL). The dialog-template resources and code for these classes are provided in the Windows common dialog boxes that are part of Windows versions 3.1 and later.

Common Dialog Classes

Derived dialog class Purpose
Lets user select colors.
Lets user select a filename to open or to save.
Lets user initiate a find or replace operation in a text file.
Lets user specify a font.
Lets user specify information for a print job.

For more information about the common dialog classes, see the individual class names in the Class Library Reference. MFC also supplies a number of standard dialog classes used for OLE. For information about these classes, see the base class, , in the Class Library Reference.

Three other classes in MFC have dialog-like characteristics. For information about classes , , and , see the classes in the Class Library Reference. For information about class , see Dialog Bar Topics.

See Also   Life Cycle of a Dialog Box, Dialog Boxes in OLE