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);  
  • 相关阅读:
    华为设备SNMP配置
    Linux CP直接覆盖快速操作
    CentOS7快速安装PHP7.0指南
    Linux SSH免密码登录配置
    this的指向
    分页的模块layui
    multer中间件
    ajax实现图片上传
    MVC模式、加密、jsonwebtoken
    mongoose与express
  • 原文地址:https://www.cnblogs.com/yoran/p/1278858.html
Copyright © 2011-2022 走看看