InfomationList.h
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:2k
源码类别:

P2P编程

开发平台:

Visual C++

  1. #if !defined(AFX_INFOMATIONLIST_H__F8D40F1B_2D7D_4E17_990C_442123833E80__INCLUDED_)
  2. #define AFX_INFOMATIONLIST_H__F8D40F1B_2D7D_4E17_990C_442123833E80__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // InfomationList.h : header file
  7. //
  8. #include "ListCtrlBaseEx.h"
  9. class CFileDBItem;
  10. class CSetupRegister;
  11. class CMonitorWnd;
  12. /////////////////////////////////////////////////////////////////////////////
  13. // CInfomationList window
  14. class CInfomationList : public CListCtrlBaseEx
  15. {
  16. // Construction
  17. public:
  18. CInfomationList();
  19. // Attributes
  20. public:
  21. // Operations
  22. public:
  23. BOOL CreateEx(CWnd* pParent, CRect rc, long lID, long lParam, CSetupRegister* pSetupRegister, CMonitorWnd* pMonitorWnd);
  24. void Monitor(CFileDBItem* pFileDBItem = 0);
  25. void ShowInfomation(bool bRefreshInfo);
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(CInfomationList)
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. public:
  32. virtual ~CInfomationList();
  33. // Generated message map functions
  34. protected:
  35. //{{AFX_MSG(CInfomationList)
  36. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  37. afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  38. //}}AFX_MSG
  39. afx_msg void OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult);
  40. afx_msg void OnMenuitemCopy();
  41. afx_msg void OnMenuitemSelectAll();
  42. afx_msg void OnMenuitemMonitorSub(UINT uID);
  43. DECLARE_MESSAGE_MAP()
  44. private:
  45. void OnShowColumn(int iItem);
  46. CFileDBItem* m_pFileDBItem;
  47. CMonitorWnd* m_pMonitorWnd;
  48. enum {eASTERISK};
  49. // enum {eMsgOutID, eMsgInID, eCmdID, eBadID};
  50. enum {eTime, eInfo, eColumnCount};
  51. CImageList m_ctlImage;
  52. enum eRunState{eBad, ePause, eWait, eRun, eAllocate, eCheck} m_eRunState;
  53. CSetupRegister* m_pSetupRegister;
  54. long m_lBasicInfoInx;
  55. long m_lRunInfoInx;
  56. long m_lRunParamInx;
  57. };
  58. /////////////////////////////////////////////////////////////////////////////
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  61. #endif // !defined(AFX_INFOMATIONLIST_H__F8D40F1B_2D7D_4E17_990C_442123833E80__INCLUDED_)