⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 webctrl.h

📁 战场登陆器vc++源代码很好用的哦精彩精彩
💻 H
字号:
#ifndef WEBCTRL_H
#define WEBCTRL_H

// #define WEBCTRL_AUTOINIT

#define WC_WEBCTRLA "WebCtrl32"
#define WC_WEBCTRLW L"WebCtrl32"

#ifdef UNICODE
#define WC_WEBCTRL WC_WEBCTRLW
#else
#define WC_WEBCTRL WC_WEBCTRLA 
#endif // UNICODE

class CWebCtrl
{
public:

   CWebCtrl( HWND );

private:

   friend LRESULT CALLBACK WebCtrlProc( HWND, UINT, WPARAM, LPARAM );

   LRESULT WebCtrlProc( UINT, WPARAM, LPARAM );

   void Navigate( LPTSTR );

   HWND m_hwnd;

   int  m_cxScroll;
   int  m_cyScroll;

   CWebContainer *m_pContainer;

   IWebBrowser2 *m_pweb;
};

bool WINAPI InitWebCtrl();
bool WINAPI UninitWebCtrl();

#ifdef WEBCTRL_AUTOINIT

HWND WINAPI CreateWebControl( LPCTSTR pszText, DWORD dwStyles, int x, int y, int cx, int cy, HWND hwndParent, UINT uId );

#endif // WEBCTRL_AUTOINIT

#endif // WEBCTRL_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -