luking
2009-07-21 17:05:25 UTC
Hi all,
I am creating a simple dialog box with WebBrowser Control, and try to
suppress Context menu when righ clicking. I have done a lot of google
search and got to know have to implement
IDocHostUIHandler::ShowContextMenu interface for that purpose, but
never got a sample of the implementation with a WebBrowser in a dialog
form, Maybe I am in the wrong direction. Can anybody give me a hint?
Here is a pice of code that I have got, I don't know how to
incorporate it with the WebControl I have added in the dialog box.
Thanks you so much!!!
HRESULT IDocHostUIHandler::ShowContextMenu(
DWORD dwID,
POINT *ppt,
IUnknown *pcmdtReserved,
IDispatch *pdispReserved
);
I am creating a simple dialog box with WebBrowser Control, and try to
suppress Context menu when righ clicking. I have done a lot of google
search and got to know have to implement
IDocHostUIHandler::ShowContextMenu interface for that purpose, but
never got a sample of the implementation with a WebBrowser in a dialog
form, Maybe I am in the wrong direction. Can anybody give me a hint?
Here is a pice of code that I have got, I don't know how to
incorporate it with the WebControl I have added in the dialog box.
Thanks you so much!!!
HRESULT IDocHostUIHandler::ShowContextMenu(
DWORD dwID,
POINT *ppt,
IUnknown *pcmdtReserved,
IDispatch *pdispReserved
);