次の方法で共有


IOleInPlaceSiteWindowless.GetWindowContext Method (IOleInPlaceFrame%, IOleInPlaceUIWindow%, array<RECT[], array<RECT[], array<OLEINPLACEFRAMEINFO )

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

'宣言
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
)

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

GetWindowContext Overload

Microsoft.VisualStudio.OLE.Interop Namespace