Source code of Windows XP (NT5)
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.

79 lines
2.4 KiB

  1. // HealthmonResultsPane.h: interface for the CHealthmonResultsPane class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_HEALTHMONRESULTSPANE_H__307235A8_AA50_11D2_BD61_0000F87A3912__INCLUDED_)
  5. #define AFX_HEALTHMONRESULTSPANE_H__307235A8_AA50_11D2_BD61_0000F87A3912__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "ResultsPane.h"
  10. #include "constants.h"
  11. #include "hmlistview.h" // OLE dispatch driver class
  12. #include "hmlistvieweventsink.h" // OLE Event Sink class
  13. #include "hmgraphview.h" // OLE dispatch driver class
  14. #include "hmgraphvieweventsink.h" // OLE Event Sink class
  15. class CHealthmonResultsPane : public CResultsPane
  16. {
  17. DECLARE_DYNCREATE(CHealthmonResultsPane)
  18. // Construction/Destruction
  19. public:
  20. CHealthmonResultsPane();
  21. virtual ~CHealthmonResultsPane();
  22. // Creation/Destruction overrideable members
  23. protected:
  24. virtual bool OnCreateOcx(LPUNKNOWN pIUnknown);
  25. virtual bool OnDestroy();
  26. // Split Pane Control Result Item Icon Management
  27. public:
  28. int AddIcon(UINT nIconResID, SplitResultsPane pane);
  29. int GetIconIndex(UINT nIconResID, SplitResultsPane pane);
  30. int GetIconCount(SplitResultsPane pane);
  31. void RemoveAllIcons(SplitResultsPane pane);
  32. protected:
  33. CMap<UINT,UINT,int,int> m_UpperIconMap;
  34. CMap<UINT,UINT,int,int> m_LowerIconMap;
  35. // Control bar Members
  36. protected:
  37. virtual HRESULT OnSetControlbar(LPCONTROLBAR pIControlbar);
  38. virtual HRESULT OnControlbarNotify(MMC_NOTIFY_TYPE event, LPARAM arg, LPARAM param);
  39. HBITMAP m_hbmpNewSystem;
  40. HBITMAP m_hbmpClearEvents;
  41. HBITMAP m_hbmpResetStatus;
  42. HBITMAP m_hbmpDisable;
  43. // Splitter Control Members
  44. public:
  45. _DHMListView* GetUpperListCtrl();
  46. CHMListViewEventSink* GetUpperListSink();
  47. _DHMListView* GetLowerListCtrl();
  48. CHMListViewEventSink* GetLowerListSink();
  49. _DHMListView* GetStatsListCtrl();
  50. CHMListViewEventSink* GetStatsListSink();
  51. _DHMGraphView* GetGraphViewCtrl();
  52. CHMGraphViewEventSink* GetGraphViewSink();
  53. protected:
  54. bool LoadListControls(LPUNKNOWN pIUnknown);
  55. _DHMListView m_DispUpperList;
  56. _DHMListView m_DispLowerList;
  57. _DHMListView m_DispStatsList;
  58. _DHMGraphView m_DispGraph;
  59. CHMListViewEventSink m_UpperListSink;
  60. CHMListViewEventSink m_LowerListSink;
  61. CHMListViewEventSink m_StatsListSink;
  62. CHMGraphViewEventSink m_GraphSink;
  63. // MFC Implementation
  64. protected:
  65. DECLARE_OLECREATE_EX(CHealthmonResultsPane)
  66. };
  67. #endif // !defined(AFX_HEALTHMONRESULTSPANE_H__307235A8_AA50_11D2_BD61_0000F87A3912__INCLUDED_)