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.

81 lines
2.0 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. grphprop.h
  5. Abstract:
  6. Header file for the graph property page class.
  7. --*/
  8. #ifndef _GRPHPROP_H_
  9. #define _GRPHPROP_H_
  10. #include "smonprop.h"
  11. // Dialog Controls
  12. #define IDD_GRAPH_PROPP_DLG 300
  13. #define IDC_VERTICAL_GRID 101
  14. #define IDC_HORIZONTAL_GRID 102
  15. #define IDC_VERTICAL_LABELS 103
  16. #define IDC_VERTICAL_MAX 104
  17. #define IDC_VERTICAL_MIN 105
  18. #define IDC_YAXIS_TITLE 106
  19. #define IDC_GRAPH_TITLE 107
  20. #define MAX_SCALE_DIGITS 9
  21. #define MAX_VERTICAL_SCALE 999999999
  22. #define MIN_VERTICAL_SCALE 0
  23. #define MAX_TITLE_CHARS 128
  24. // Graph property page class
  25. class CGraphPropPage : public CSysmonPropPage
  26. {
  27. public:
  28. CGraphPropPage(void);
  29. virtual ~CGraphPropPage(void);
  30. protected:
  31. virtual BOOL GetProperties(void); //Read current properties
  32. virtual BOOL SetProperties(void); //Set new properties
  33. virtual void DialogItemChange(WORD wId, WORD wMsg); // Handle item change
  34. virtual BOOL InitControls(void); //Initialize dialog controls
  35. private:
  36. // Properties
  37. VARIANT_BOOL m_bLabels;
  38. VARIANT_BOOL m_bVertGrid;
  39. VARIANT_BOOL m_bHorzGrid;
  40. INT m_iVertMax;
  41. INT m_iVertMin;
  42. LPTSTR m_pszYaxisTitle;
  43. LPTSTR m_pszGraphTitle;
  44. // Property change flags
  45. VARIANT_BOOL m_bLabelsChg;
  46. VARIANT_BOOL m_bVertGridChg;
  47. VARIANT_BOOL m_bHorzGridChg;
  48. VARIANT_BOOL m_bVertMaxChg;
  49. VARIANT_BOOL m_bVertMinChg;
  50. VARIANT_BOOL m_bYaxisTitleChg;
  51. VARIANT_BOOL m_bGraphTitleChg;
  52. // Error flags
  53. INT m_iErrVertMin;
  54. INT m_iErrVertMax;
  55. };
  56. typedef CGraphPropPage *PCGraphPropPage;
  57. // {C3E5D3D3-1A03-11cf-942D-008029004347}
  58. DEFINE_GUID(CLSID_GraphPropPage,
  59. 0xc3e5d3d3, 0x1a03, 0x11cf, 0x94, 0x2d, 0x0, 0x80, 0x29, 0x0, 0x43, 0x47);
  60. #endif //_GRPHPROP_H_