Partager via


CAxDialogImpl::Create

Call this method to create 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.

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

  • RECT&
    This parameter is not used. This parameter is passed in by CComControl.

Return Value

The handle to the newly created dialog box.

Remarks

This dialog box is automatically attached to the CAxDialogImpl object. To create a modal dialog box, call DoModal.

The second override is provided only so dialog boxes can be used with CComControl.

Requirements

Header: atlwin.h

See Also

Reference

CAxDialogImpl Class

CAxDialogImpl::DestroyWindow

CAxDialogImpl::DoModal