CDialogImpl::DoModal

int DoModal( HWND hWndParent = ::GetActiveWindow( ) );

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.

Remarks

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

To create a modeless dialog box, call Create.

CDialogImpl OverviewClass Members

See Also

CWindow::m_hWnd, CDialogImpl::EndDialog