IModalWindow::Show method

Launches the modal window.

Syntax


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

Parameters

hwndOwner [in, optional]

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 codeDescription
HRESULT_FROM_WIN32(ERROR_CANCELLED)

The user closed the window by cancelling the operation.

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft