对于Internet Explorer的应用,实属初级,请楼上的高手仔细解释一下如何?
--调用CHtmlView的什么函数?得到什么接口?
--再Query什么接口?
--到哪里找到关于这些接口的使用?
……
总之越仔细越好,先谢过

解决方案 »

  1.   

    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