提交 | 用户 | age
|
418cb3
|
1 |
#pragma once
|
Q |
2 |
class CAnsiParser
|
|
3 |
{
|
|
4 |
public:
|
|
5 |
CAnsiParser();
|
|
6 |
virtual ~CAnsiParser() { Dettach(); };
|
|
7 |
public:
|
|
8 |
int m_WndAttached = 0;
|
|
9 |
int m_AttachedType = 0;
|
|
10 |
CEdit m_Wnd;
|
|
11 |
CEdit * m_pWnd;
|
|
12 |
|
|
13 |
CRichEditCtrl m_RichWnd;
|
|
14 |
CRichEditCtrl *m_pRichWnd;
|
|
15 |
int screenwidth = 150;
|
|
16 |
int screenheight = 40;
|
|
17 |
|
|
18 |
char InBuf[2000];
|
|
19 |
int nBufDataLen =0;
|
|
20 |
unsigned char screenM[200][300];
|
|
21 |
char screenT[200][300];
|
|
22 |
|
|
23 |
volatile int bNeedUpdate = 0;
|
|
24 |
volatile int nNeedUpdateCount = 0;
|
|
25 |
int LastUpdateTime = 0;
|
|
26 |
|
|
27 |
int CursorX, CursorY;
|
|
28 |
int StoredX, StoredY;
|
|
29 |
int CurMode = 0x70;
|
|
30 |
int CurColor, BKColor;
|
|
31 |
|
|
32 |
public:
|
|
33 |
int AttachWnd(HWND hWnd);
|
|
34 |
int Dettach();
|
|
35 |
|
|
36 |
int ClrScreen();
|
|
37 |
int Locate(int x, int y);
|
|
38 |
int SetColor(int color);
|
|
39 |
int SetScreenWH(int w, int h);
|
|
40 |
|
|
41 |
int PutIn(unsigned char * str, int len1 = 0);
|
|
42 |
int UpdateScreen();
|
|
43 |
|
|
44 |
};
|
|
45 |
|