IModalWindow::Show method

Launches the modal window.

Syntax

HRESULT Show(
  HWND hwndOwner
);

Parameters

hwndOwner

Type: HWND

The handle of the owner window. This value can be NULL.

Return Value

Type: HRESULT

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code, including the following:

Return code Description
HRESULT_FROM_WIN32(ERROR_CANCELLED)
The user closed the window by cancelling the operation.

Requirements

   
Windows version Windows XP [desktop apps only] Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)