• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 142
  • Last Modified:

Also Web Browser Control?


In the Web Browser Control, a menu will be popped-up when I have clicked the right-button of the mouse.

Can I prevent the menu to be popped-up in this suitation?

1 Solution
Vinayak KumbarSr Program ManagerCommented:

I think that control is on a dialog. Map the PreTranslateMessage function to that dialog and do the following thing.

if(pMsg->message == WM_RBUTTONDOWN)
pMsg->message = 0;

If u have any other controls and u dont want context menu for this control only then u can get the rect of that control and check if it is there in the rect and nullify it.

Hope it helps.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now