CDialog::CDialog

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).

At a Glance

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

Syntax

CDialog( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL );

CDialog( UINT nIDTemplate, CWnd* pParentWnd = NULL );

CDialog( );

See Also

CDialog::Create, CWnd::DestroyWindow, CDialog::InitModalIndirect, CDialog::DoModal