CSimpleDialog

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

Parameters

t_wDlgTemplateID

The resource ID of the dialog template resource.

t_bCenter

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 on any control with a pre-defined value (such as IDOK or IDCANCEL).

CSimpleDialog allows you to create a modal or modeless dialog box. 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.

#include <atlwin.h>

Class Members