Problem of using callback interface IRichEditOleCallback of IRichEditOle

S

squall

Hi,I need to use the IRichEditOleCallback callback interface for some
requirements, such as, when you type email can recognise a contact user,then
outlook will create a OleObject(Recipient)and insert it into richedit
controls,so before insertion,the IRichEditOleCallback::QueryInsertObject
will be called,so I could add a image object just next it. I think this is
the normal way to approach it.

So I set the callback of the Mail_Recipient_To richedit control as follows:

.::SendMessage(hToRichEditWnd, EM_SETOLECALLBACK, 0, (LPARAM)
(LPRICHEDITOLECALLBACK) m_pCallBack);

and record the insert and delete actions in the and IRichEditOleCallback::
QueryInsertObject and IRichEditOleCallback ::DeleteObject .

Here comes the problem:

That richedit has many build-in actions such as Drag and Drop (Recipient
Object),context menu...etc. I cann't influence the previous functions of
those richedit.How can I implement the other functions. If I didn't implement
the IRichEditOleCallback::GetContextMenu,the defualt actions or richedit will
be changed.

Thanks for any suggestions.

Regards
squall
 
Top