我的AcitveX DLL控件运行在IE浏览器中时,怎样获得IE的IWebBrowser2接口???

解决方案 »

  1.   

    See KB Article Q172763 "INFO: Accessing the Object Model from Within an
    ActiveX Control"
      

  2.   

    搜索一下文档中心就有:
    http://www.csdn.net/develop/Read_Article.asp?Id=10175
      

  3.   

    我的ActiveX DLL控件是否要实现什么接口???
      

  4.   

    from IServiceProvider you can get it,see 
    http://www.csdn.net/expert/topic/971/971386.xml?temp=.9486048
      

  5.   

    kingzai:
    请问在一个控件中怎样获得容器实现的接口指针(如IClientSite)等建立与容的连接,我这个控件应该如何??
      

  6.   

    kingzai:  
    请问在一个控件中怎样获得容器实现的接口指针(如IClientSite)建立与容器的连接,我这个控件应该如何编写??
      

  7.   

    YOu might be able to call GetClientSite () and get IClientSite and QI for IWebBrowser interface. If you get a valid interface, you can assume that you are in IE.