TracePage.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #if !defined(AFX_TRACEPAGE_H__749D54AC_2C20_11D6_AB38_00D0B70C3D79__INCLUDED_)
  2. #define AFX_TRACEPAGE_H__749D54AC_2C20_11D6_AB38_00D0B70C3D79__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // TracePage.h : header file
  7. //
  8. #include "ColorListBox.h"
  9. class CTracePage : public CDialog
  10. {
  11. DECLARE_DYNCREATE(CTracePage)
  12. // Construction
  13. public:
  14. CTracePage();
  15. ~CTracePage();
  16. void AddTraceLine(int nLevel, LPCTSTR pstrFormat, ...);
  17. // Dialog Data
  18. //{{AFX_DATA(CTracePage)
  19. enum { IDD = IDD_PROPPAGE_TRACE };
  20. CColorListBox m_TraceList;
  21. //}}AFX_DATA
  22. // Overrides
  23. // ClassWizard generate virtual function overrides
  24. //{{AFX_VIRTUAL(CTracePage)
  25. protected:
  26. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  27. //}}AFX_VIRTUAL
  28. // Implementation
  29. protected:
  30. // Generated message map functions
  31. //{{AFX_MSG(CTracePage)
  32. afx_msg void OnSize(UINT nType, int cx, int cy);
  33. afx_msg void OnTraceClear();
  34. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  35. //}}AFX_MSG
  36. LRESULT OnAddTraceLine(WPARAM, LPARAM);
  37. DECLARE_MESSAGE_MAP()
  38. CObList m_LogQueue;
  39. CCriticalSection m_QueueLock;
  40. class CLogMsg : public CObject
  41. {
  42. public:
  43. CLogMsg() {};
  44. virtual ~CLogMsg()
  45. {
  46. };
  47. SYSTEMTIME m_sysTime;
  48. int m_nLevel;
  49. CString m_strText;
  50. };
  51. };
  52. //{{AFX_INSERT_LOCATION}}
  53. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  54. #endif // !defined(AFX_TRACEPAGE_H__749D54AC_2C20_11D6_AB38_00D0B70C3D79__INCLUDED_)