R
Robert
Can I programmatically disable the right click context menu?
* "Robert said:Can I programmatically disable the right click context menu?
Hi Robert
Implement the IDocHostUIHandler interface and in the >ShowContextMenu
function return an HRESULT of S_OK. This will prevent the >context menu from
being displayed.
You can inform the WebBrowser control that you have >implemented the
IDocHostUIHandler interface by getting an ICustomDoc >interface from the
document, and calling SetUIHandler method with a >reference to your class
that implements the interface.
HTH
Charles