htmlviewer.h

来自「联通手机的宝典画面.用brew 平台编辑而成.」· C头文件 代码 · 共 79 行

H
79
字号

/*

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