다음을 통해 공유


IVsWindowFrame4.GetWindowScreenRect Method

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)

Syntax

'Declaration
Function GetWindowScreenRect ( _
    <OutAttribute> ByRef screenLeft As Integer, _
    <OutAttribute> ByRef screenTop As Integer, _
    <OutAttribute> ByRef screenWidth As Integer, _
    <OutAttribute> ByRef screenHeight As Integer _
) As Boolean
bool GetWindowScreenRect(
    out int screenLeft,
    out int screenTop,
    out int screenWidth,
    out int screenHeight
)
bool GetWindowScreenRect(
    [OutAttribute] int% screenLeft, 
    [OutAttribute] int% screenTop, 
    [OutAttribute] int% screenWidth, 
    [OutAttribute] int% screenHeight
)
abstract GetWindowScreenRect : 
        screenLeft:int byref * 
        screenTop:int byref * 
        screenWidth:int byref * 
        screenHeight:int byref -> bool
function GetWindowScreenRect(
    screenLeft : int, 
    screenTop : int, 
    screenWidth : int, 
    screenHeight : int
) : boolean

Parameters

  • screenLeft
    Type: Int32%

    The left screen coordinate.

  • screenTop
    Type: Int32%

    The top screen coordinate.

  • screenWidth
    Type: Int32%

    The screen width coordinate.

  • screenHeight
    Type: Int32%

    The screen height coordinate.

Return Value

Type: Boolean
The HRESULT.

.NET Framework Security

See Also

Reference

IVsWindowFrame4 Interface

Microsoft.VisualStudio.Shell.Interop Namespace