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.

107 lines
3.3 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. genprop.h
  5. Abstract:
  6. Header file for the general property page.
  7. --*/
  8. #ifndef _GENPROP_H_
  9. #define _GENPROP_H_
  10. #include "smonprop.h"
  11. // Dialog Controls
  12. #define IDD_GEN_PROPP_DLG 100
  13. #define IDC_LEGEND 101
  14. #define IDC_VALUEBAR 102
  15. #define IDC_GALLERY_GRAPH 103
  16. #define IDC_GALLERY_HISTOGRAM (IDC_GALLERY_GRAPH+1)
  17. #define IDC_GALLERY_REPORT (IDC_GALLERY_HISTOGRAM+1)
  18. #define IDC_PERIODIC_UPDATE 106
  19. #define IDC_UPDATE_INTERVAL 107
  20. #define IDC_INTERVAL_LABEL 108
  21. #define IDC_TOOLBAR 109
  22. #define IDC_APPEARANCE 110
  23. #define IDC_BORDERSTYLE 111
  24. #define IDC_COMBOAPPEARANCE 112
  25. #define IDC_COMBOBORDERSTYLE 113
  26. #define IDC_GROUPUPDATE 114
  27. #define IDC_DUPLICATE_INSTANCE 115
  28. #define IDC_GROUPREPORTVALUE 116
  29. #define IDC_DISPLAY_INTERVAL 117
  30. #define IDC_DISPLAY_INT_LABEL1 118
  31. #define IDC_DISPLAY_INT_LABEL2 119
  32. #define IDC_RPT_VALUE_DEFAULT 120
  33. #define IDC_RPT_VALUE_CURRENT (IDC_RPT_VALUE_DEFAULT+1)
  34. #define IDC_RPT_VALUE_AVERAGE (IDC_RPT_VALUE_CURRENT+1)
  35. #define IDC_RPT_VALUE_MINIMUM (IDC_RPT_VALUE_AVERAGE+1)
  36. #define IDC_RPT_VALUE_MAXIMUM (IDC_RPT_VALUE_MINIMUM+1)
  37. #define MAX_INTERVAL_DIGITS 7
  38. // MAX_UPDATE_INTERVAL is 45 days (60*60*24*45)
  39. #define MAX_UPDATE_INTERVAL 3888000
  40. #define MIN_UPDATE_INTERVAL 1
  41. // General property page class
  42. class CGeneralPropPage : public CSysmonPropPage
  43. {
  44. public:
  45. CGeneralPropPage(void);
  46. virtual ~CGeneralPropPage(void);
  47. protected:
  48. virtual BOOL GetProperties(void); //Read current properties
  49. virtual BOOL SetProperties(void); //Set new properties
  50. virtual void DialogItemChange(WORD wId, WORD wMsg); // Handle item change
  51. virtual BOOL InitControls(void); // Init dialog controls
  52. private:
  53. // Properties
  54. VARIANT_BOOL m_bLegend ;
  55. VARIANT_BOOL m_bValueBar ;
  56. VARIANT_BOOL m_bToolbar;
  57. VARIANT_BOOL m_bManualUpdate;
  58. VARIANT_BOOL m_bMonitorDuplicateInstances ;
  59. INT m_iDisplayInterval ;
  60. INT m_iAppearance;
  61. INT m_iBorderStyle;
  62. DisplayTypeConstants m_eDisplayType ;
  63. ReportValueTypeConstants m_eReportValueType ;
  64. FLOAT m_fSampleInterval ;
  65. // Property change flags
  66. BOOL m_bLegendChg ;
  67. BOOL m_bToolbarChg;
  68. BOOL m_bValueBarChg ;
  69. BOOL m_bManualUpdateChg;
  70. BOOL m_bSampleIntervalChg ;
  71. BOOL m_bDisplayIntervalChg ;
  72. BOOL m_bDisplayTypeChg ;
  73. BOOL m_bReportValueTypeChg ;
  74. BOOL m_bAppearanceChg;
  75. BOOL m_bBorderStyleChg;
  76. BOOL m_bMonitorDuplicateInstancesChg;
  77. // Error flags
  78. INT m_iErrSampleInterval;
  79. INT m_iErrDisplayInterval;
  80. };
  81. typedef CGeneralPropPage *PCGeneralPropPage;
  82. // {C3E5D3D2-1A03-11cf-942D-008029004347}
  83. DEFINE_GUID(CLSID_GeneralPropPage,
  84. 0xc3e5d3d2, 0x1a03, 0x11cf, 0x94, 0x2d, 0x0, 0x80, 0x29, 0x0, 0x43, 0x47);
  85. #endif //_GENPROP_H_