IRichEditOleCallback::GetInPlaceContext method

Provides the application and document-level interfaces and information required to support in-place activation.

Syntax

HRESULT GetInPlaceContext(
  LPOLEINPLACEFRAME     *lplpFrame,
  LPOLEINPLACEUIWINDOW  *lplpDoc,
  LPOLEINPLACEFRAMEINFO lpFrameInfo
);

Parameters

lplpFrame

Type: LPOLEINPLACEFRAME*

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

Type: LPOLEINPLACEUIWINDOW*

The address of the 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 AddRefmethod to increment the reference count. The rich edit control releases the interface when it is no longer needed.

lpFrameInfo

Type: LPOLEINPLACEFRAMEINFO

The accelerator information.

Return Value

Type: HRESULT

Returns S_OK on success. If the method fails, it can return the following value.

Return code Description
E_INVALIDARG
There was an invalid argument.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header richole.h
DLL Msftedit.dll

See Also

IRichEditOleCallback