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.

74 lines
1.6 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. srcprop.h
  5. Abstract:
  6. Data Appear Property Page
  7. --*/
  8. #ifndef _APPEARPROP_H_07242000_
  9. #define _APPEARPROP_H_07242000_
  10. #include "smonprop.h"
  11. // Dialog Controls
  12. #define IDD_APPEAR_PROPP_DLG 600
  13. #define IDC_COLOROBJECTS 601
  14. #define IDC_COLORBUTTON 602
  15. #define IDC_FONTBUTTON 604
  16. #define IDC_FONTSAMPLE 605
  17. #define IDC_STATIC_COLOR 606
  18. #define IDC_STATIC_FONT 607
  19. #define IDC_COLORSAMPLE 608
  20. typedef enum ColorChoices {
  21. GraphColor,
  22. ControlColor,
  23. TextColor,
  24. GridColor,
  25. TimebarColor
  26. };
  27. // Data Appear property page class
  28. class CAppearPropPage : public CSysmonPropPage
  29. {
  30. public:
  31. CAppearPropPage(void);
  32. virtual ~CAppearPropPage(void);
  33. enum eAppearConstants {
  34. eColorCount = 16,
  35. };
  36. protected:
  37. virtual BOOL GetProperties(void); //Read current properties
  38. virtual BOOL SetProperties(void); //Set new properties
  39. virtual BOOL InitControls(void);
  40. virtual void DialogItemChange(WORD wId, WORD wMsg); // Handle item change
  41. virtual BOOL WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam); // Special msg processing
  42. private:
  43. COLORREF m_Color;
  44. LOGFONT m_Font;
  45. void ColorizeButton();
  46. void SampleFont();
  47. };
  48. typedef CAppearPropPage *PCAppearPropPage;
  49. // {e49741e9-93a8-4ab1-8e96-bf4482282e9c}
  50. DEFINE_GUID(CLSID_AppearPropPage,
  51. 0xe49741e9, 0x93a8, 0x4ab1, 0x8e, 0x96, 0xbf, 0x44, 0x82, 0x28, 0x2e, 0x9c);
  52. #endif //_APPEARPROP_H_07242000_