Help Center

CRichEdit.GetOleInterfacemethod

Retrieves an IRichEditOle object that a client can use to access a rich edit control's Component Object Model (COM) functionality.

Windowsmethoddocumented

Syntax

FUNCTION GetOleInterface (BYVAL hRichEdit AS HWND, BYVAL ppObject AS IUnknown PTR PTR) AS LONG

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
ppObjectPointer to a pointer that receives the IRichEditOle object. The control calls the AddRef method for the object before returning, so the calling application must call the Release method when it is done with the object.

Return value

If the operation succeeds, the return value is a nonzero value.

If the operation fails, the return value is zero.

Description

Retrieves an IRichEditOle object that a client can use to access a rich edit control's Component Object Model (COM) functionality.

Reference

  • Defined in AfxNova/CRichEdit.inc:558
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class