Bringing back the default context menu in RichEdit when using OLE callback
I have a RichEdit control that uses an implementation of the IRichEditOleCallback interface, so that it can host images and embedded objects.
Part of this interface is the GetContextMenu method. If this method remains unimplemented, the context menu (obviously) will not show up. Returning E_NOTIMPL does not do the trick.
I would not like to implement a context menu from scratch, while the default one is perfectly fine. Is there a simple way to bring back the context menu while using IRichEditOleCallback?
EDIT: I discovered that a click on the "context menu" keyboard k开发者_开发百科ey still brings up the default menu. It's a right-click that doesn't work.
精彩评论