The EM_SETOLEINTERFACE message gives a rich edit control an IRichEditOleCallback object that the control uses to get OLE-related resources and information from the client.
EM_SETOLEINTERFACE wParam = 0; lParam = (LPARAM) (IRichEditOleCallback FAR *) lpObj;
Returns a nonzero value if successful or zero otherwise.