Hi,
I am currently making my custom web browser application using C# (using .net 2005 visual studio). I make use of the webBrowser component which u can found in the toolbox. When running my application, and right click on the webbrowser component, i got the default context menu (that come with the Internet explorer).
Goal: My aim is to customize this default context menu. Customize here means i still want the default context menu, but wanna remove/disable/add options to this default context menu.
In order to achieve this goal, i spend more than 2 days to search for articles, and after many trial and errors, I have successfully make use of IDocHostUIHandler interfaces , to catch the event where the context menu is about to be shown.
Here is the snippet of code :
uint IDocHostUIHandler.ShowContextMenu(uint dwID, ref tagPOINT ppt, object pcmdtReserved, object pdispReserved)
{
//i not sure how to modify the exisiting default context menu
}
Question: Whenever a person using my application, right click to show context menu, it will trigger this event handler function. So now i have a problem, how do I make use of the 4 parameters passed in, to modify the default context menu. Microsoft help file did have codes for modifying existing default context menu ,such as removing the view source option from the context menu, but the code is in C++!!!!!! So question is, anyone know how to achieve my aim USING C# language
Thanks you.

Customizing the default context menu of the web browser