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

P2P编程

开发平台:

Visual C++

  1. #if !defined(AFX_MONITORDETAILWND_H__B69095C7_F024_46D6_AEDE_4AC3075A69BD__INCLUDED_)
  2. #define AFX_MONITORDETAILWND_H__B69095C7_F024_46D6_AEDE_4AC3075A69BD__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // MonitorDetailWnd.h : header file
  7. //
  8. #include "MonitorCategoryWnd.h"
  9. #include "SubFilesWnd.h"
  10. #include "PeersListCtrl.h"
  11. #include "GraphWnd.h"
  12. #include "LogList.h"
  13. #include "InfomationList.h"
  14. #include "FileTorrent.h"
  15. class CCategoryBarWnd;
  16. class CSetupRegister;
  17. enum ImageIDS{IID_INFOMATION= 0, IID_SUBFILES, IID_ALL_PEERS, IID_RUN_GRAPH, IID_LOG, IID_PEER};
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CMonitorDetailWnd window
  20. class CMonitorDetailWnd : public CWnd
  21. {
  22. // Construction
  23. public:
  24. CMonitorDetailWnd();
  25. // Attributes
  26. public:
  27. // Operations
  28. public:
  29. BOOL CreateEx(CWnd *pParent, CRect rc, long lID, long lParam, CSetupRegister* pSetupRegister);
  30. void ShowNode(CTreeCursor& cursor, bool bRefreshInfo);
  31. void Monitor(CFileDBItem* pFileDBItem);
  32. // Overrides
  33. // ClassWizard generated virtual function overrides
  34. //{{AFX_VIRTUAL(CMonitorDetailWnd)
  35. //}}AFX_VIRTUAL
  36. // Implementation
  37. public:
  38. // void SetDBSavePath(string strDBSavePath);
  39. void SetCateGoryBarWnd(CCategoryBarWnd* pCategoryBarWnd);
  40. virtual ~CMonitorDetailWnd();
  41. // Generated message map functions
  42. protected:
  43. //{{AFX_MSG(CMonitorDetailWnd)
  44. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  45. afx_msg void OnSize(UINT nType, int cx, int cy);
  46. //}}AFX_MSG
  47. afx_msg void OnFileTorrentOpened(long lParam, long lwParam);
  48. DECLARE_MESSAGE_MAP()
  49. private:
  50. CInfomationList m_listInfomation;
  51. CPeersListCtrl m_listPeers;
  52. CLogList m_listMsg;
  53. CSubFilesWnd m_treeSubFiles;
  54. CGraphWnd m_graphWnd;
  55. CCategoryBarWnd* m_pCategoryBarWnd;
  56. CFileDBItem* m_pFileDBItem;
  57. bool m_bShowSubFiles;
  58. bool m_bShowInfomation;
  59. int m_iCurImageID;
  60. bool m_bShowFileDBLog;
  61. CFileTorrent m_fileTorrent;
  62. CSetupRegister* m_pSetupRegister;
  63. };
  64. /////////////////////////////////////////////////////////////////////////////
  65. //{{AFX_INSERT_LOCATION}}
  66. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  67. #endif // !defined(AFX_MONITORDETAILWND_H__B69095C7_F024_46D6_AEDE_4AC3075A69BD__INCLUDED_)