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