Use either one of these constructors to construct 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 ID number, usually with an IDD_ prefix (for example, IDD_DIALOG1).
CDialog( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL );
CDialog( UINT nIDTemplate, CWnd* pParentWnd = NULL );
CDialog( );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CDialog Overview, CDialog Member Functions, Dialog Box Classes, CDialog::Create, CWnd::DestroyWindow, CDialog::InitModalIndirect, CDialog::DoModal