Share via


IOleInPlaceSiteWindowless.GetWindowContext Method

Definition

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.

public:
 void GetWindowContext([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IOleInPlaceFrame ^ % ppFrame, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IOleInPlaceUIWindow ^ % ppDoc, cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ lprcPosRect, cli::array <Microsoft::VisualStudio::OLE::Interop::RECT> ^ lprcClipRect, cli::array <Microsoft::VisualStudio::OLE::Interop::OLEINPLACEFRAMEINFO> ^ lpFrameInfo);
void GetWindowContext([Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IOleInPlaceFrame const & & ppFrame, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IOleInPlaceUIWindow const & & ppDoc, std::Array <Microsoft::VisualStudio::OLE::Interop::RECT> const & lprcPosRect, std::Array <Microsoft::VisualStudio::OLE::Interop::RECT> const & lprcClipRect, std::Array <Microsoft::VisualStudio::OLE::Interop::OLEINPLACEFRAMEINFO> const & lpFrameInfo);
public void GetWindowContext (out Microsoft.VisualStudio.OLE.Interop.IOleInPlaceFrame ppFrame, out Microsoft.VisualStudio.OLE.Interop.IOleInPlaceUIWindow ppDoc, Microsoft.VisualStudio.OLE.Interop.RECT[] lprcPosRect, Microsoft.VisualStudio.OLE.Interop.RECT[] lprcClipRect, Microsoft.VisualStudio.OLE.Interop.OLEINPLACEFRAMEINFO[] lpFrameInfo);
abstract member GetWindowContext : IOleInPlaceFrame * IOleInPlaceUIWindow * Microsoft.VisualStudio.OLE.Interop.RECT[] * Microsoft.VisualStudio.OLE.Interop.RECT[] * Microsoft.VisualStudio.OLE.Interop.OLEINPLACEFRAMEINFO[] -> unit
Public Sub GetWindowContext (ByRef ppFrame As IOleInPlaceFrame, ByRef ppDoc As IOleInPlaceUIWindow, lprcPosRect As RECT(), lprcClipRect As RECT(), lpFrameInfo As OLEINPLACEFRAMEINFO())

Parameters

ppFrame
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
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
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
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
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.

Implements

Applies to