📄 webcontrol.h
字号:
#ifndef WEBCONTROLCLASS_H
#define WEBCONTROLCLASS_H
extern "C" {
#include "WebCtrl.h"
}
#include "Window.h"
#define WEB_CTRL_CLASS_NAME "Web Control"
class WebControl : public Window
{
public :
WebControl() : Window(){};
void init(HINSTANCE, HWND);
void displayPage(const char *addr) {
DisplayHTMLPage(_hSelf, (LPSTR)addr);
};
void displayStr(const char *htmlStr) {
DisplayHTMLStr(_hSelf, (LPSTR)htmlStr);
};
virtual void destroy() {
::DestroyWindow(_hSelf);
};
private :
static const char _className[32];
static int _nbWindow;
static LRESULT CALLBACK WebCtrl_Proc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam);
LRESULT runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam);
};
#endif WEBCONTROLCLASS_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -