CRichEdit.SetOleCallbackmethod
Gives a rich edit control an IRichEditOleCallback object that the control uses to get OLE-related resources and information from the client.
Syntax
FUNCTION SetOleCallback (BYVAL hRichEdit AS HWND, BYVAL pCallback AS ANY PTR) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
pCallback | Pointer 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