CRichEditOleCallback.GetInPlaceContextmethod
Provides the application and document-level interfaces and information required to support in-place activation.
Syntax
DECLARE VIRTUAL FUNCTION GetInPlaceContext (BYVAL lplpFrame AS LPOLEINPLACEFRAME PTR, BYVAL lplpDoc AS LPOLEINPLACEUIWINDOW PTR, BYVAL lpFrameInfo AS LPOLEINPLACEFRAMEINFO) AS HRESULT
Parameters
| Name | Description | |
|---|---|---|
lplpFrame | The address of the IOleInPlaceFrame interface that represents the frame window of a rich edit control client. Use the AddRef method to increment the reference count. The rich edit control releases the interface when it is no longer needed. | |
lplpDoc | The address of the [IOleInPlaceUIWindow(https://learn.microsoft.com/en-us/windows/win32/api/oleidl/nn-oleidl-ioleinplaceuiwindow) interface that represents the document window of the rich edit control client. An interface need not be returned if the frame and document windows are the same. Use the AddRef method to increment the reference count. The rich edit control releases the interface when it is no longer needed. | |
lpFrameInfo | The accelerator information. OLEINPLACEFRAMEINFO |
Return value
Returns S_OK on success. If the method fails, it can return the following value.
Description
Provides the application and document-level interfaces and information required to support in-place activation.
Example
GetInPlaceContext (BYVAL lplpFrame AS LPOLEINPLACEFRAME PTR, BYVAL lplpDoc AS LPOLEINPLACEUIWINDOW PTR, _ BYVAL lpFrameInfo AS LPOLEINPLACEFRAMEINFO) AS HRESULT
Reference
- Defined in AfxNova/CRichEditOleCallback.inc:32
- Documented in Windows/WIndows Controls/RichEdit/CRichEditOleCallback Class.md
- Topic: CRichEditOleCallback Class