Partager via


CDialogImpl::Create

Creates a modeless dialog box.

HWND Create(
   HWND hWndParent,
   LPARAM dwInitParam = NULL 
);
HWND Create(
   HWND hWndParent,
   RECT&,
   LPARAM dwInitParam = NULL 
);

Parameters

  • hWndParent
    [in] The handle to the owner window.

  • RECT& rect
    [in] A RECT structure specifying the dialog's size and position.

  • dwInitParam
    [in] Specifies the value to pass to the dialog box in the lParam parameter of the WM_INITDIALOG message.

Return Value

The handle to the newly created dialog box.

Remarks

This dialog box is automatically attached to the CDialogImpl object. To create a modal dialog box, call DoModal. The second override above is used only with CComControl.

Requirements

Header: atlwin.h

See Also

Concepts

CDialogImpl Class

CDialogImpl Members

CWindow::m_hWnd