1. You simply query MSHTML (as represented by the IHTMLDocument2 interface) for ICustomDoc and call its only method, SetUIHandler, to inform the WebBrowser control that you're implementing IDocHostUIHandler. 2. Implement IOleClientSite, Query WebBrowser for IOleObject and call SetClientSite. WebBrowser will Query your client site for IDocHostUIHanler interface you can call m_wndBrowser.GetControlUnknown() to get the WebBrowser's IUnknown. see msdn
2. Implement IOleClientSite, Query WebBrowser for IOleObject and call SetClientSite. WebBrowser will Query your client site for IDocHostUIHanler interface
you can call m_wndBrowser.GetControlUnknown() to get the WebBrowser's IUnknown.
see msdn