Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CSimpleDialog Class

This class implements a basic modal dialog box.

template < 
   WORD t_wDlgTemplateID, 
   BOOL t_bCenter = TRUE 
class CSimpleDialog : 
   public CDialogImplBase


The resource ID of the dialog template resource.


TRUE if the dialog object is to be centered on the owner window; otherwise FALSE.

Implements a modal dialog box with basic functionality. CSimpleDialog provides support for Windows common controls only. To create and display a modal dialog box, create an instance of this class, providing the name of an existing resource template for the dialog box. The dialog box object closes when the user clicks any control with a pre-defined value (such as IDOK or IDCANCEL).

CSimpleDialog allows you to create only modal dialog boxes. CSimpleDialog provides the dialog box procedure, which uses the default message map to direct messages to the appropriate handlers.

See Implementing a Dialog Box for more information.

Header: atlwin.h

Community Additions

© 2015 Microsoft