How to practically customize IE context menu?

Posted by bionicoder on Stack Overflow See other posts from Stack Overflow or by bionicoder
Published on 2010-04-08T04:42:38Z Indexed on 2010/04/08 4:43 UTC
Read the original article Hit count: 232

I need to add one menu item in IE context menu. It is similar with Google customized context menu "Search Google for xxx" when you right click on IE.

I did a research and found that overriding IDocHostUIHandler::ShowContextMenu in a IE BHO can customized IE context menu. The sample project can be found in Popup blocker project published in codeproject. It works well and is easy to implement. However this approach has a problem. The problem is it will conflict with other add-ons' context menu customization per MSDN.

In MSDN Internet Explorer Center forum, there are some discussions about this topic. However there is not a proper implementation posted.

If anybody has experience on this, please share your idea. Thanks!

© Stack Overflow or respective owner

Related posts about c++

Related posts about webbrowser