开发者

Bringing back the default context menu in RichEdit when using OLE callback

开发者 https://www.devze.com 2023-01-18 15:55 出处:网络
I have a RichEdit control that uses an implementation of the IRichEditOleCallback interface, so that it can host images and embedded objects.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消