I am hosting a webbrowser2 in my MFC based application. I'd like to customize the right click popup menu of IE.

After checking the sample Driller, I implemented CustSite and return S_OK from CCustomControlSite::XDocHostUIHandler::ShowContextMenu.

It does not display the IE menu.

How do I obtain the handle to the associated WebBrowser object ?

I need it to display and manage the popup menu.

TIA.

-Neeraj