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