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.

61 lines
1.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. SscpStat.h
  7. The superscope statistics dialog
  8. FILE HISTORY:
  9. */
  10. #ifndef _SSCPSTAT_H
  11. #define _SSCPSTAT_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 CSuperscopeStats : public StatsDialog
  19. {
  20. public:
  21. CSuperscopeStats();
  22. ~CSuperscopeStats();
  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_MIB_INFO pMibInfo);
  32. void SetNode(ITFSNode * pNode) { m_spNode.Set(pNode); }
  33. void SetServer(LPCTSTR pServer) { m_strServerAddress = pServer; }
  34. void SetSuperscopeName(LPCTSTR pSuperscopeName) { m_strSuperscopeName = pSuperscopeName; }
  35. DECLARE_MESSAGE_MAP()
  36. // Context Help Support
  37. virtual DWORD * GetHelpMap() { return DhcpGetHelpMap(IDD_STATS_NARROW); }
  38. protected:
  39. CString m_strServerAddress;
  40. CString m_strSuperscopeName;
  41. CDWordArray m_dwScopeArray;
  42. SPITFSNode m_spNode;
  43. };
  44. #endif _SSCPSTAT_H