LogList.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:2k
源码类别:
P2P编程
开发平台:
Visual C++
- #if !defined(AFX_LOGLIST_H__46FCF380_552F_4A79_809F_BA24C9FC04E0__INCLUDED_)
- #define AFX_LOGLIST_H__46FCF380_552F_4A79_809F_BA24C9FC04E0__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // LogList.h : header file
- //
- #include "ListCtrlBaseEx.h"
- class CFileDBItem;
- class CMonitorWnd;
- /////////////////////////////////////////////////////////////////////////////
- // CLogList window
- class CLogList : public CListCtrlBaseEx
- {
- // Construction
- public:
- CLogList();
- // Attributes
- public:
- // Operations
- public:
- BOOL CreateEx(CWnd* pParent, CRect rc, long lID, long lParam, CMonitorWnd* pMonitorWnd);
- void Monitor(CFileDBItem* pFileDBItem = 0);
- void ShowLogs(bool bRefreshInfo);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CLogList)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CLogList();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CLogList)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
- //}}AFX_MSG
- afx_msg void OnDeleteitem(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult);
- afx_msg void OnMenuitemCopy();
- afx_msg void OnMenuitemSelectAll();
- afx_msg void OnMenuitemClearAll();
- afx_msg void OnMenuitemMonitorSub(UINT uID);
- DECLARE_MESSAGE_MAP()
- private:
- void ShowMsgText(int iItem);
- void OnShowColumn(int iItem);
- CFileDBItem* m_pFileDBItem;
- CMonitorWnd* m_pMonitorWnd;
- enum {eMsgOutID, eMsgInID, eCmdID, eBadID};
- enum {eTime, eInfo, eColumnCount};
- CImageList m_ctlImage;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_LOGLIST_H__46FCF380_552F_4A79_809F_BA24C9FC04E0__INCLUDED_)