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

P2P编程

开发平台:

Visual C++

  1. #if !defined(AFX_MONITORWND_H__38BFC47A_3352_41F5_AACA_124EF3BFC181__INCLUDED_)
  2. #define AFX_MONITORWND_H__38BFC47A_3352_41F5_AACA_124EF3BFC181__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // MonitorWnd.h : header file
  7. //
  8. #include "MonitorDetailWnd.h"
  9. #include "SplitterBar.h"
  10. class CDownload;
  11. class CFileDBItem;
  12. class CSetupRegister;
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CMonitorWnd window
  15. class CMonitorWnd : public CWnd
  16. {
  17. // Construction
  18. public:
  19. CMonitorWnd();
  20. // Attributes
  21. public:
  22. CMonitorDetailWnd m_MonitorDetailWnd;
  23. CMonitorCategoryWnd m_treeCategory;
  24. // Operations
  25. public:
  26. void SwitchMonitorCategory(bool bNext);
  27. void OnShowNode(UINT uID);
  28. void OnContextQuery(CMenu& menubar);
  29. // Overrides
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(CMonitorWnd)
  32. //}}AFX_VIRTUAL
  33. // Implementation
  34. public:
  35. void SetFocusCategory();
  36. BOOL CreateEx(CWnd* pParent, CRect&rc, long lParam, CSetupRegister* pSetupRegister);
  37. virtual ~CMonitorWnd();
  38. void SetCateGoryBarWnd(CCategoryBarWnd* pCategoryBarWnd);
  39. void Monitor(CFileDBItem* pItem, long lShowNode = -1);
  40. void Refresh();
  41. // Generated message map functions
  42. protected:
  43. //{{AFX_MSG(CMonitorWnd)
  44. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  45. afx_msg void OnSize(UINT nType, int cx, int cy);
  46. afx_msg void OnDestroy();
  47. //}}AFX_MSG
  48. afx_msg void OnSplitterMoved(long lParam, long wParam);
  49. afx_msg void OnNodeSelect(NMHDR *pNotifyStruct,LRESULT *result);
  50. DECLARE_MESSAGE_MAP()
  51. private:
  52. void LoadState();
  53. void SaveState();
  54. void RefreshPeers();
  55. void ShowPeers();
  56. static  const CString m_strSection;
  57. static  const CString m_strStateKey;
  58. long m_lSplitPercent;
  59. CFileDBItem* m_pFileDBItem;
  60. CSetupRegister* m_pSetupRegister;
  61. CTreeCursor m_curInfomation;
  62. CTreeCursor m_curAllPeers;
  63. CTreeCursor m_curLog;
  64. CTreeCursor m_curSubFiles;
  65. CTreeCursor m_curGraph;
  66. bool m_bDeleteing;
  67. CImageList m_ctlImage;
  68. CSplitterBar m_wndHSplitterBar;
  69. };
  70. /////////////////////////////////////////////////////////////////////////////
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_MONITORWND_H__38BFC47A_3352_41F5_AACA_124EF3BFC181__INCLUDED_)