Export (0) Print
Expand All

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 AddRef method 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 codeDescription
E_INVALIDARG

There was an invalid argument.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Richole.h

DLL

Msftedit.dll

See also

IRichEditOleCallback

 

 

Community Additions

ADD
Show:
© 2014 Microsoft