CDialog::Create

This method creates a modeless dialog box using a dialog-box template from a resource.

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

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

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

Remarks

All Windows CE dialog boxes are control parents, and are recursive, so you do not need to specify the DS_CONTROL, DS_RECURSE, or WS_EX_CONTROLPARENT styles for your dialog boxes.

All dialog boxes 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 does not support the following dialog box styles:

For more information on supported dialog box styles, see the Window and Control Styles chapter of the Windows CE SDK Guide.

See Also

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