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

📄 webcontrol.h

📁 一个类似于写字板的程序
💻 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 + -