WindowHelper::GetHwndFromUIElement Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets a window handle from the specified UI element.

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assemblies:   Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)

public:
static IntPtr GetHwndFromUIElement(
	IVsUIElement^ element, 
	IntPtr parent
)

Parameters

element
Type: Microsoft.VisualStudio.Shell.Interop::IVsUIElement

The UI element.

parent
Type: System::IntPtr

The parent window handle.

Return Value

Type: System::IntPtr
The window handle.

Show: