November 18th, 2011, 10:43 AM
How to disable Context-menu in Web Browser Control
I'm working on Win7 with Visual C++ 2010(native).
I've build MFC application with Web Browser Control(IE9), I enabled in registry the "Open in New Tab" in the context-menu and need to disable/invisible the "Open in new Window" line.
Anyone knows how can I do this?
November 24th, 2011, 02:52 AM
Re: How to disable Context-menu in Web Browser Control
I don't know how to disable/remove it from the context-menu, except removing the entire context-menu.
But, I think you can handle NewWindow2, open the page however you want, and then set Cancel to VARIANT_TRUE.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.