IVsWindowFrame4::GetWindowScreenRect Method (Int32, Int32, Int32, Int32)

 

Gets the frame's position, in screen coordinates. This rectangle represents the screen coordinates of the content portion of the tool window, measured in pixels. This area does not include the title region, but includes any toolbars hosted by the window. This function behaves the same regardless of the dock state of the window (floating, docked, MDI). The isOnScreen return value will be set to true if the frame's position and size could be accurately calculated, or false if the frame's position or size values could not be accurately calculated.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)

bool GetWindowScreenRect(
	[OutAttribute] int% screenLeft,
	[OutAttribute] int% screenTop,
	[OutAttribute] int% screenWidth,
	[OutAttribute] int% screenHeight
)

Parameters

screenLeft
Type: System::Int32

The left screen coordinate.

screenTop
Type: System::Int32

The top screen coordinate.

screenWidth
Type: System::Int32

The screen width coordinate.

screenHeight
Type: System::Int32

The screen height coordinate.

Return Value

Type: System::Boolean

The HRESULT.

Return to top
Show: