Help Center

CRichEdit.SetOleCallbackmethod

Gives a rich edit control an IRichEditOleCallback object that the control uses to get OLE-related resources and information from the client.

Windowsmethoddocumented

Syntax

FUNCTION SetOleCallback (BYVAL hRichEdit AS HWND, BYVAL pCallback AS ANY PTR) AS LONG

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
pCallbackPointer to an IRichEditOleCallback object. The control calls the AddRef method for the object before returning.

Return value

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

If the operation fails, the return value is zero.

Description

Gives a rich edit control an IRichEditOleCallback object that the control uses to get OLE-related resources and information from the client.

Reference

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