📄 creport.h
字号:
#ifndef CREPORT_H
#define CREPORT_H
#include "CMemory.h"
class CReport : public CPanorama
{
public:
CReport();
~CReport();
CReport(CView *pView, CBureaucrat *pBureau);
void AppendMsg(char *str);
void Draw(Rect *area);
int Save(char *filename);
private:
void DrawLine(long Line);
void DrawCharLine(long lPos);
int GetCharHeight();
int GetCharWidth();
long GetLineNumber(long lPos);
CMemory *pMem; /*CMemory object storing the characters*/
char *pText; /*pointer to the data of pMem when it's locked*/
long lReportLen; /*Length of the report in characters*/
long lLine; /*Number of lines*/
CArray *pLineArray; /*The lth element contain the position of the first character of the lth line in pText*/
};
#endif /* CREPORT_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -