CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    2

    Question How to disable Context-menu in Web Browser Control

    Hi,
    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?
    10x
    Dan B.

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    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.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured