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.
Assembly: Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)
void GetWindowContext( [OutAttribute] IOleInPlaceFrame^% ppFrame, [OutAttribute] IOleInPlaceUIWindow^% ppDoc, array<RECT>^ lprcPosRect, array<RECT>^ lprcClipRect, array<OLEINPLACEFRAMEINFO>^ lpFrameInfo )
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.