Either one of these constructors constructs a resource-based modal dialog box. One form of the constructor provides access to the dialog resource by template name. The other constructor provides access by template identifier number, usually with an IDD_* prefix (for example, IDD_DIALOG1).
Header file: | Afxwin.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
CDialog( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL );
CDialog( UINT nIDTemplate, CWnd* pParentWnd = NULL );
CDialog( );
CDialog::Create, CWnd::DestroyWindow, CDialog::InitModalIndirect, CDialog::DoModal