Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- ppFrame 
 Type: Microsoft.VisualStudio.OLE.Interop.IOleInPlaceFrame%- [out] Address of IOleInPlaceFrame* pointer variable that receives the interface pointer to the frame. If an error occurs, the implementation must set *ppFrame to NULL. 
- 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. 
- lpFrameInfo 
 Type: array<Microsoft.VisualStudio.OLE.Interop.OLEINPLACEFRAMEINFO[]- [out] Pointer to an OLEINPLACEFRAMEINFO structure the container is to fill in with appropriate data. If an error is returned, this parameter must be set to NULL. 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.