Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.7 KiB

  1. // watcherDoc.h : interface of the CWatcherDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_WATCHERDOC_H__C1609D45_5255_456D_97BD_BF6372AFCBB1__INCLUDED_)
  5. #define AFX_WATCHERDOC_H__C1609D45_5255_456D_97BD_BF6372AFCBB1__INCLUDED_
  6. #include "ParameterDialog.h" // Added by ClassView
  7. #if _MSC_VER > 1000
  8. #pragma once
  9. #endif // _MSC_VER > 1000
  10. class CWatcherDoc : public CDocument
  11. {
  12. protected: // create from serialization only
  13. CWatcherDoc();
  14. DECLARE_DYNCREATE(CWatcherDoc)
  15. // Attributes
  16. public:
  17. CWatcherDoc(CString &machine, CString &command, UINT port,
  18. int tc, int lang, int hist, CString &lgnName, CString &lgnPasswd, CString &sess);
  19. // Operations
  20. public:
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CWatcherDoc)
  24. public:
  25. virtual BOOL OnNewDocument();
  26. virtual void Serialize(CArchive& ar);
  27. virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
  28. //}}AFX_VIRTUAL
  29. // Implementation
  30. public:
  31. ParameterDialog & GetParameters();
  32. void ScrollData(BYTE byte, COLORREF foreground,COLORREF background,
  33. int ScrollTop, int ScrollBottom);
  34. BOOL Unlock();
  35. BOOL Lock();
  36. TCHAR * GetDataLine(int line);
  37. void SetData(int x, int y, BYTE byte, int n, COLORREF foreground, COLORREF background);
  38. void SetData(int x, int y, TCHAR byte, COLORREF foreground, COLORREF background);
  39. TCHAR * GetData(void);
  40. COLORREF * GetForeground(void);
  41. COLORREF * GetBackground(void);
  42. virtual ~CWatcherDoc();
  43. #ifdef _DEBUG
  44. virtual void AssertValid() const;
  45. virtual void Dump(CDumpContext& dc) const;
  46. #endif
  47. protected:
  48. // Generated message map functions
  49. protected:
  50. ParameterDialog Params;
  51. COLORREF Background[MAX_TERMINAL_HEIGHT*MAX_TERMINAL_WIDTH];
  52. COLORREF Foreground[MAX_TERMINAL_HEIGHT*MAX_TERMINAL_WIDTH];
  53. TCHAR Data[MAX_TERMINAL_WIDTH*MAX_TERMINAL_HEIGHT];
  54. CCriticalSection mutex;
  55. //{{AFX_MSG(CWatcherDoc)
  56. // NOTE - the ClassWizard will add and remove member functions here.
  57. // DO NOT EDIT what you see in these blocks of generated code !
  58. //}}AFX_MSG
  59. DECLARE_MESSAGE_MAP()
  60. };
  61. /////////////////////////////////////////////////////////////////////////////
  62. //{{AFX_INSERT_LOCATION}}
  63. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  64. #endif // !defined(AFX_WATCHERDOC_H__C1609D45_5255_456D_97BD_BF6372AFCBB1__INCLUDED_)