CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2000
    Location
    Germany, Franken
    Posts
    257

    deactivate contextmenu in Webbrowser control under MFC

    Hi,
    I've got a MFC-programm in which i included the Microsoft Webbrowser control. Now I want to deactivate that the contextmenu is shown when the user rightclicks on the control. But I've got no idea how to do that. Can anyone please give me a hint?

    Thanks in Advance

    Akademos

  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: deactivate contextmenu in Webbrowser control under MFC

    Originally posted by Akademos
    i included the Microsoft Webbrowser control.
    Could you please clarify that? How did you include web browser control?
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  3. #3
    Join Date
    Mar 2000
    Location
    Germany, Franken
    Posts
    257
    I added it into a dialog-resource via the "Insert ActiveX-Control" Context-menu in the resource designer. So I've got a CExplorer1 class derived from CWindow.

  4. #4
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917
    I am afraid that there is no easy way to do it. frankly it goes beyond the scope of this forum.
    Look into Web Browser customization in MSDN. Also read about IDocHostUIHandler that will allow you customization of the browser.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  5. #5
    Join Date
    Mar 2004
    Posts
    1

    A decent article about this

    Hi list,

    Here is a decent article that I have recently discovered, which is discussing the customization of the context menus of a WebBrowser control, via the IDocHostUIHandler.

    Regards,
    -Theo

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