Compartir a través de


IOleInPlaceSiteWindowless.GetWindowContext Method

Enables an in-place object to retrieve window interfaces that form at the window object hierarchy, and the position in the parent window to locate the object's in-place activation window.

Namespace:  Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

Syntax

'Declaration
Sub GetWindowContext ( _
    <OutAttribute> ByRef ppFrame As IOleInPlaceFrame, _
    <OutAttribute> ByRef ppDoc As IOleInPlaceUIWindow, _
    <OutAttribute> lprcPosRect As RECT(), _
    <OutAttribute> lprcClipRect As RECT(), _
    <OutAttribute> lpFrameInfo As OLEINPLACEFRAMEINFO() _
)
void GetWindowContext(
    out IOleInPlaceFrame ppFrame,
    out IOleInPlaceUIWindow ppDoc,
    RECT[] lprcPosRect,
    RECT[] lprcClipRect,
    OLEINPLACEFRAMEINFO[] lpFrameInfo
)
void GetWindowContext(
    [OutAttribute] IOleInPlaceFrame^% ppFrame, 
    [OutAttribute] IOleInPlaceUIWindow^% ppDoc, 
    [OutAttribute] array<RECT>^ lprcPosRect, 
    [OutAttribute] array<RECT>^ lprcClipRect, 
    [InAttribute] [OutAttribute] array<OLEINPLACEFRAMEINFO>^ lpFrameInfo
)
abstract GetWindowContext : 
        ppFrame:IOleInPlaceFrame byref * 
        ppDoc:IOleInPlaceUIWindow byref * 
        lprcPosRect:RECT[] byref * 
        lprcClipRect:RECT[] byref * 
        lpFrameInfo:OLEINPLACEFRAMEINFO[] byref -> unit
function GetWindowContext(
    ppFrame : IOleInPlaceFrame, 
    ppDoc : IOleInPlaceUIWindow, 
    lprcPosRect : RECT[], 
    lprcClipRect : RECT[], 
    lpFrameInfo : OLEINPLACEFRAMEINFO[]
)

Parameters

  • ppDoc
    Type: Microsoft.VisualStudio.OLE.Interop.IOleInPlaceUIWindow%

    [out] Address of IOleInPlaceUIWindow* pointer variable that receives the interface pointer to the document window. If the document window is the same as the frame window, *ppDoc is set to NULL. In this case, the object can only use *ppFrame or border negotiation. If an error is returned, the implementation must set *ppDoc to NULL.

  • lprcPosRect
    Type: array<Microsoft.VisualStudio.OLE.Interop.RECT[]

    [out] Pointer to the rectangle containing the position of the in-place object in the client coordinates of its parent window. If an error is returned, this parameter must be set to NULL.

  • lprcClipRect
    Type: array<Microsoft.VisualStudio.OLE.Interop.RECT[]

    [out] Pointer to the outer rectangle containing the in-place object's position rectangle (PosRect). This rectangle is relative to the client area of the object's parent window. If an error is returned, this parameter must be set to NULL.

.NET Framework Security

See Also

Reference

IOleInPlaceSiteWindowless Interface

Microsoft.VisualStudio.OLE.Interop Namespace