CAxDialogImpl::DoModal

int DoModal( HWND hWndParent = ::GetActiveWindow(), LPARAM dwInitParam = NULL );

Return Value

If successful, the value of the nRetCode parameter specified in the call to EndDialog; otherwise, -1.

Parameters

hWndParent

[in] The handle to the owner window. The default value is the return value of the GetActiveWindow Win32 function.

dwInitParam

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

Remarks

Creates a modal dialog box. This dialog box is automatically attached to the CAxDialogImpl object.

To create a modeless dialog box, call Create.

CAxDialogImpl OverviewClass Members

See Also

CAxDialogImpl::EndDialog, CAxDialogImpl::Create