📄 htmlviewer.h
字号:
/*
htmlviewer.h
*/
#ifndef _CHTMLVIEWER_H_
#define _CHTMLVIEWER_H_
#include "object.h"
#include "AEEStdLib.h"
#include "AEEHtmlViewer.h"
class CHtmlViewer
{
private:
IHtmlViewer *m_htmlv;
void *m_resstring;
char *m_resstringbuf;
AEEApplet *m_applet;
boolean m_enable;
public:
static const int TXT_SEEKSIZE;
private:
void DisableClass(void);
char *SeekTXT(char *buf,int *move);
public:
CHtmlViewer(void);
virtual ~CHtmlViewer(){}
boolean Create(AEEApplet *applet);
boolean Release(void);
boolean LoadResStringAndParseBuffer(const char *resfile,short resid);
boolean UnLoadResString(void);
void SetRect(const AEERect *rc);
void ParseBuffer(const char *str);
void Redraw(void);
void HandleEvent(AEEEvent evt,uint16 wp,uint32 dwp);
void SetNotifyFn(PFNHVIEWNOTIFY notify,void *param);
void ReleaseNotifyFn(void);
void SetProperties(uint32 flag);
boolean IsEnable(void)
{
return m_enable;
}
void SetEnable(boolean flag)
{
m_enable = flag;
}
};
//
//
//
inline void CHtmlViewer::DisableClass(void)
{
SetEnable(FALSE);
m_htmlv = NULL;
m_resstring = NULL;
m_resstringbuf= NULL;
}
inline CHtmlViewer::CHtmlViewer(void)
{
DisableClass();
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -