#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(); };