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.

68 lines
1.5 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. protected:
  34. virtual BOOL GetProperties(void); //Read current properties
  35. virtual BOOL SetProperties(void); //Set new properties
  36. virtual BOOL InitControls(void);
  37. virtual void DialogItemChange(WORD wId, WORD wMsg); // Handle item change
  38. virtual BOOL WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam); // Special msg processing
  39. private:
  40. COLORREF m_Color;
  41. LOGFONT m_Font;
  42. void ColorizeButton();
  43. void SampleFont();
  44. };
  45. typedef CAppearPropPage *PCAppearPropPage;
  46. // {e49741e9-93a8-4ab1-8e96-bf4482282e9c}
  47. DEFINE_GUID(CLSID_AppearPropPage,
  48. 0xe49741e9, 0x93a8, 0x4ab1, 0x8e, 0x96, 0xbf, 0x44, 0x82, 0x28, 0x2e, 0x9c);
  49. #endif //_APPEARPROP_H_07242000_