Registry Explorer (console tool) by Nedko Arnaoudov added to the system utilities...
[reactos.git] / rosapps / sysutils / regexpl / TextHistory.h
1 // TextHistory.h: interface for the CTextHistory class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(TEXTHISTORY_H__AD9C6555_1D97_11D4_9F58_204C4F4F5020__INCLUDED_)
6 #define TEXTHISTORY_H__AD9C6555_1D97_11D4_9F58_204C4F4F5020__INCLUDED_
7
8 class CTextHistory
9 {
10 public:
11 CTextHistory();
12 virtual ~CTextHistory();
13 BOOL Init(DWORD dwMaxHistoryLineSize, DWORD dwMaxHistoryLines);
14 const TCHAR * GetHistoryLine(DWORD dwIndex);
15 void AddHistoryLine(const TCHAR *pchLine);
16 private:
17 TCHAR *m_pHistoryBuffer;
18 DWORD m_dwMaxHistoryLines;
19 DWORD m_dwMaxHistoryLineSize;
20 DWORD m_dwFirstHistoryIndex;
21 DWORD m_dwLastHistoryIndex;
22 DWORD m_dwHisoryFull;
23 };
24
25 #endif // !defined(TEXTHISTORY_H__AD9C6555_1D97_11D4_9F58_204C4F4F5020__INCLUDED_)