Hello
I want to know if it is possible to disable the context menu on a code editor.
I am using an editor like the one in the SDK's LanguageServiceInDialog sample, and I don't want the context menu to appear, currently I'm handling the QueryStatus method (implementing the IOleCommandTarget interface) and hidding all the elements in the menu, but the menu still shows up displaying "No Commands Available", I just want that the menu isn't displayed at all, any ideas?
I tried handling the messages for the right click in the IMessageFilter.PreFilterMessage method, but that doesn't lets the cursor in the position where I clicked.
Thanks for your help
I want to know if it is possible to disable the context menu on a code editor.
I am using an editor like the one in the SDK's LanguageServiceInDialog sample, and I don't want the context menu to appear, currently I'm handling the QueryStatus method (implementing the IOleCommandTarget interface) and hidding all the elements in the menu, but the menu still shows up displaying "No Commands Available", I just want that the menu isn't displayed at all, any ideas?
I tried handling the messages for the right click in the IMessageFilter.PreFilterMessage method, but that doesn't lets the cursor in the position where I clicked.
Thanks for your help