This topic has not yet been rated - Rate this topic

IVsUIShell.GetDialogOwnerHwnd Method

Returns the HWND that can be used to parent modal dialogs.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int GetDialogOwnerHwnd (
	out IntPtr phwnd
)
int GetDialogOwnerHwnd (
	/** @attribute OutAttribute() */ /** @ref */ IntPtr phwnd
)
JScript does not support passing value-type arguments by reference.

Parameters

phwnd

[out] Pointer to a window handle that can be used to parent modal dialogs.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsUIShell::GetDialogOwnerHwnd(
   [out] HWND * phwnd
);

This method returns the handle of the environment's main application window unless another modal dialog box is already open. In this case, the HWND of the top-most modal dialog is returned.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.