1 //
2 // TextHistory.h: interface for the CTextHistory class.
3 //
4 //////////////////////////////////////////////////////////////////////
5 
6 #if !defined(TEXTHISTORY_H__AD9C6555_1D97_11D4_9F58_204C4F4F5020__INCLUDED_)
7 #define TEXTHISTORY_H__AD9C6555_1D97_11D4_9F58_204C4F4F5020__INCLUDED_
8 
9 class CTextHistory
10 {
11 public:
12 	CTextHistory();
13 	virtual ~CTextHistory();
14 	BOOL Init(DWORD dwMaxHistoryLineSize, DWORD dwMaxHistoryLines);
15 	const TCHAR * GetHistoryLine(DWORD dwIndex);
16 	void AddHistoryLine(const TCHAR *pchLine);
17 private:
18 	TCHAR *m_pHistoryBuffer;
19 	DWORD m_dwMaxHistoryLines;
20 	DWORD m_dwMaxHistoryLineSize;
21 	DWORD m_dwFirstHistoryIndex;
22 	DWORD m_dwLastHistoryIndex;
23 	DWORD m_dwHisoryFull;
24 };
25 
26 #endif // !defined(TEXTHISTORY_H__AD9C6555_1D97_11D4_9F58_204C4F4F5020__INCLUDED_)
27