webctrl.h

来自「战场登陆器vc++源代码很好用的哦精彩精彩」· C头文件 代码 · 共 49 行

H
49
字号
#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 + =
减小字号Ctrl + -
显示快捷键?