123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #if !defined(AFX_TRACEPAGE_H__749D54AC_2C20_11D6_AB38_00D0B70C3D79__INCLUDED_)
- #define AFX_TRACEPAGE_H__749D54AC_2C20_11D6_AB38_00D0B70C3D79__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif
- #include "ColorListBox.h"
- class CTracePage : public CDialog
- {
- DECLARE_DYNCREATE(CTracePage)
- public:
- CTracePage();
- ~CTracePage();
- void AddTraceLine(int nLevel, LPCTSTR pstrFormat, ...);
-
- enum { IDD = IDD_PROPPAGE_TRACE };
- CColorListBox m_TraceList;
-
-
-
- protected:
- virtual void DoDataExchange(CDataExchange* pDX);
-
- protected:
-
-
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnTraceClear();
- afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
-
- LRESULT OnAddTraceLine(WPARAM, LPARAM);
- DECLARE_MESSAGE_MAP()
- CObList m_LogQueue;
- CCriticalSection m_QueueLock;
- class CLogMsg : public CObject
- {
- public:
- CLogMsg() {};
- virtual ~CLogMsg()
- {
- };
-
- SYSTEMTIME m_sysTime;
- int m_nLevel;
- CString m_strText;
- };
- };
- #endif
|