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.

60 lines
1.5 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. ServStat.h
  7. The server statistics dialog
  8. FILE HISTORY:
  9. */
  10. #ifndef _SERVSTAT_H
  11. #define _SERVSTAT_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. #define SERVER_STATS_DEFAULT_WIDTH 345
  19. #define SERVER_STATS_DEFAULT_HEIGHT 265
  20. class CServerStats : public StatsDialog
  21. {
  22. public:
  23. CServerStats();
  24. ~CServerStats();
  25. // Override the OnInitDialog so that we can set the caption
  26. virtual BOOL OnInitDialog();
  27. // Override the RefreshData to provide sample data
  28. virtual HRESULT RefreshData(BOOL fGrabNewData);
  29. // Override the Sort to provide the ability to do sorting
  30. virtual void Sort(UINT nColumnId);
  31. // custom methods
  32. afx_msg long OnNewStatsAvailable(UINT wParam, LONG lParam);
  33. void UpdateWindow(LPDHCP_MIB_INFO pMibInfo);
  34. void SetNode(ITFSNode * pNode) { m_spNode.Set(pNode); }
  35. void SetServer(LPCTSTR pServer) { m_strServerAddress = pServer; }
  36. DECLARE_MESSAGE_MAP()
  37. // Context Help Support
  38. virtual DWORD * GetHelpMap() { return DhcpGetHelpMap(IDD_STATS_NARROW); }
  39. protected:
  40. CString m_strServerAddress;
  41. SPITFSNode m_spNode;
  42. };
  43. #endif _SERVSTAT_H