CDialog::Create

Call this member function to create a modeless dialog box using a dialog-box template from a resource.

Syntax

BOOL Create( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL );

BOOL Create( UINT nIDTemplate, CWnd* pParentWnd = NULL );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

All Windows CE dialog boxes are control parents, and are recursive, so you don't need to specify the DS_CONTROL, DS_RECURSE, or WS_EX_CONTROLPARENT styles for your dialogs. All dialogs in Windows CE also have the DS_3DLOOK style. Dialog boxes in Windows CE have the WS_POPUP style by default, unless you specify the WS_CHILD style. Windows CE doesn't support the DS_CENTERMOUSE, DS_CONTEXTHELP, DS_CONTROL, DS_FIXEDSYS, or DS_NOFAILCREATE dialog box styles. For more information on supported dialog box styles, see Dialog Box Styles.

See Also

CDialog Overview, CDialog Member Functions, Dialog Box Classes, CDialog::CDialog, CWnd::DestroyWindow, CDialog::InitModalIndirect, CDialog::DoModal