Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. mscpstat.h
  7. The scope statistics dialog
  8. FILE HISTORY:
  9. */
  10. #ifndef _MSCPSTAT_H
  11. #define _MSCPSTAT_H
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. #ifndef _STATSDLG_H
  16. #include "statsdlg.h"
  17. #endif
  18. class CMScopeStats : public StatsDialog
  19. {
  20. public:
  21. CMScopeStats();
  22. ~CMScopeStats();
  23. // Override the OnInitDialog so that we can set the caption
  24. virtual BOOL OnInitDialog();
  25. // Override the RefreshData to provide sample data
  26. virtual HRESULT RefreshData(BOOL fGrabNewData);
  27. // Override the Sort to provide the ability to do sorting
  28. virtual void Sort(UINT nColumnId);
  29. // custom methods
  30. afx_msg long OnNewStatsAvailable(UINT wParam, LONG lParam);
  31. void UpdateWindow(LPDHCP_MCAST_MIB_INFO pMibInfo);
  32. void SetNode(ITFSNode * pNode) { m_spNode.Set(pNode); }
  33. void SetServer(LPCTSTR pServer) { m_strServerAddress = pServer; }
  34. void SetScopeId(DWORD dwScopeId) { m_dwScopeId = dwScopeId; }
  35. void SetName(LPCTSTR pName) { m_strScopeName = pName; }
  36. DECLARE_MESSAGE_MAP()
  37. // Context Help Support
  38. virtual DWORD * GetHelpMap() { return DhcpGetHelpMap(IDD_STATS_NARROW); }
  39. protected:
  40. CString m_strServerAddress;
  41. CString m_strScopeName;
  42. DWORD m_dwScopeId;
  43. SPITFSNode m_spNode;
  44. };
  45. #endif _MSCPSTAT_H