Поделиться через


CRichEditCtrl::SetOLECallback

Gives this CRichEditCtrl object an IRichEditOleCallback object to use to access OLE-related resources and information.

BOOL SetOLECallback(
   IRichEditOleCallback* pCallback 
);

Параметры

  • pCallback
    Pointer to an IRichEditOleCallback object that this CRichEditCtrl object will use to get OLE-related resources and information.

Возвращаемое значение

Nonzero if successful; otherwise, 0.

Заметки

This CRichEditCtrl object will call IUnknown::AddRef to increment the usage count for the COM object specified by pCallback.

For more information, see EM_SETOLECALLBACK message and IRichEditOleCallback interface in the Windows SDK.

Требования

Header: afxcmn.h

См. также

Основные понятия

CRichEditCtrl Class

CRichEditCtrl Members

Hierarchy Chart

CRichEditCtrl::GetIRichEditOle