MonitorWnd.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:2k
源码类别:
P2P编程
开发平台:
Visual C++
- #if !defined(AFX_MONITORWND_H__38BFC47A_3352_41F5_AACA_124EF3BFC181__INCLUDED_)
- #define AFX_MONITORWND_H__38BFC47A_3352_41F5_AACA_124EF3BFC181__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MonitorWnd.h : header file
- //
- #include "MonitorDetailWnd.h"
- #include "SplitterBar.h"
- class CDownload;
- class CFileDBItem;
- class CSetupRegister;
- /////////////////////////////////////////////////////////////////////////////
- // CMonitorWnd window
- class CMonitorWnd : public CWnd
- {
- // Construction
- public:
- CMonitorWnd();
- // Attributes
- public:
- CMonitorDetailWnd m_MonitorDetailWnd;
- CMonitorCategoryWnd m_treeCategory;
- // Operations
- public:
- void SwitchMonitorCategory(bool bNext);
- void OnShowNode(UINT uID);
- void OnContextQuery(CMenu& menubar);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMonitorWnd)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void SetFocusCategory();
- BOOL CreateEx(CWnd* pParent, CRect&rc, long lParam, CSetupRegister* pSetupRegister);
- virtual ~CMonitorWnd();
- void SetCateGoryBarWnd(CCategoryBarWnd* pCategoryBarWnd);
- void Monitor(CFileDBItem* pItem, long lShowNode = -1);
- void Refresh();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMonitorWnd)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnDestroy();
- //}}AFX_MSG
- afx_msg void OnSplitterMoved(long lParam, long wParam);
- afx_msg void OnNodeSelect(NMHDR *pNotifyStruct,LRESULT *result);
- DECLARE_MESSAGE_MAP()
- private:
- void LoadState();
- void SaveState();
- void RefreshPeers();
- void ShowPeers();
- static const CString m_strSection;
- static const CString m_strStateKey;
- long m_lSplitPercent;
- CFileDBItem* m_pFileDBItem;
- CSetupRegister* m_pSetupRegister;
- CTreeCursor m_curInfomation;
- CTreeCursor m_curAllPeers;
- CTreeCursor m_curLog;
- CTreeCursor m_curSubFiles;
- CTreeCursor m_curGraph;
- bool m_bDeleteing;
- CImageList m_ctlImage;
- CSplitterBar m_wndHSplitterBar;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MONITORWND_H__38BFC47A_3352_41F5_AACA_124EF3BFC181__INCLUDED_)