Help Center

CRichEditCtx.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 pCallback AS ANY PTR) AS LONG

Parameters

NameDescription
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/CRichEditCtx.inc:2984
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class