次の方法で共有


IVsWindowFrame4.GetWindowScreenRect(Int32, Int32, Int32, Int32) Method

Definition

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.

public:
 bool GetWindowScreenRect([Runtime::InteropServices::Out] int % screenLeft, [Runtime::InteropServices::Out] int % screenTop, [Runtime::InteropServices::Out] int % screenWidth, [Runtime::InteropServices::Out] int % screenHeight);
bool GetWindowScreenRect([Runtime::InteropServices::Out] int & screenLeft, [Runtime::InteropServices::Out] int & screenTop, [Runtime::InteropServices::Out] int & screenWidth, [Runtime::InteropServices::Out] int & screenHeight);
public bool GetWindowScreenRect (out int screenLeft, out int screenTop, out int screenWidth, out int screenHeight);
abstract member GetWindowScreenRect : int * int * int * int -> bool
Public Function GetWindowScreenRect (ByRef screenLeft As Integer, ByRef screenTop As Integer, ByRef screenWidth As Integer, ByRef screenHeight As Integer) As Boolean

Parameters

screenLeft
Int32

The left screen coordinate.

screenTop
Int32

The top screen coordinate.

screenWidth
Int32

The screen width coordinate.

screenHeight
Int32

The screen height coordinate.

Returns

The HRESULT.

Applies to