IModalWindow::Show method (shobjidl_core.h)

Launches the modal window.

Syntax

HRESULT Show(
  [in, optional] HWND hwndOwner
);

Parameters

[in, optional] 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

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)