Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 2.44 KB

common-dialog-classes.md

File metadata and controls

31 lines (24 loc) · 2.44 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Common Dialog Classes
Common Dialog Classes
11/04/2016
dialog classes [MFC]
dialog boxes [MFC], Windows common dialogs
common dialog boxes [MFC], common dialog classes
common dialog classes [MFC]
MFC dialog boxes [MFC], Windows common dialogs
Windows common dialogs [MFC]
dialog classes [MFC], common
common dialog boxes [MFC]
5c4f6443-896c-4b05-a7df-8169fdadc71d

Common Dialog Classes

In addition to class CDialog, 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
CColorDialog Lets user select colors.
CFileDialog Lets user select a filename to open or to save.
CFindReplaceDialog Lets user initiate a find or replace operation in a text file.
CFontDialog Lets user specify a font.
CPrintDialog Lets user specify information for a print job.
CPrintDialogEx Windows Print property sheet.

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

Three other classes in MFC have dialog-like characteristics. For information about classes CFormView, CRecordView, and CDaoRecordView, see the classes in the MFC Reference. For information about class CDialogBar, see Dialog Bars.

See also

Dialog Boxes
Working with Dialog Boxes in MFC
Dialog Boxes in OLE