zoukankan      html  css  js  c++  java
  • nothing....

      //   Error   checking   omitted   for   clarity  
      CComPtr<IOleObject>   spOleObj;  
       
      //   Create   WebBrowser--store   pointer   in   class   member   variable   m_spWebBrowser  
      CoCreateInstance(CLSID_WebBrowser,   NULL,   CLSCTX_INPROC,   IID_IWebBrowser2,   (void**)&m_spWebBrowser);  
       
      //   Query   WebBrowser   for   IOleObject   pointer  
      m_spWebBrowser->QueryInterface(IID_IOleObject,   (void**)&spOleObj);  
       
      //   Set   client   site  
      spOleObj->SetClientSite(this);  
       
      //   In-place   activate   the   WebBrowser   control  
      RECT   rcClient  
      GetClientRect(&rcClient);  
      spOleObj->DoVerb(OLEIVERB_INPLACEACTIVATE,   NULL,   this,   0,   GetTopLevelWindow(),   &rcClient);  
       
      //   Register   container   to   intercept   WebBrowser   events  
      AtlAdvise(m_spWebBrowser,   GetUnknown(),   DIID_DWebBrowserEvents2,   &m_dwCookie);  
       
      //   Navigate   to   start   page  
      m_spWebBrowser->Navigate(L"res://webhost.exe/startpage.htm",   NULL,   NULL,   NULL,   NULL);  
  • 相关阅读:
    122. 买卖股票的最佳时机 II
    45. 跳跃游戏 II
    134. 加油站
    55. 跳跃游戏
    714. 买卖股票的最佳时机含手续费
    121. 买卖股票的最佳时机
    860. 柠檬水找零
    开发环境安装合集(部分搬运)
    javascript的单例模式
    javascript 工厂模式
  • 原文地址:https://www.cnblogs.com/yoran/p/1278858.html
Copyright © 2011-2022 走看看