2 /* Some definitions for appearance page */
3 #define SIZE_BORDER_X 0
4 #define SIZE_BORDER_Y 1
5 #define SIZE_CAPTION_Y 2
8 #define SIZE_ICON_SPC_X 5
9 #define SIZE_ICON_SPC_Y 6
12 #define SIZE_SCROLL_X 9
13 #define SIZE_SCROLL_Y 10
14 #define SIZE_SMCAPTION_Y 11
16 #define FONT_CAPTION 0
17 #define FONT_SMCAPTION 1
18 #define FONT_HILIGHT 2
24 #define NUM_ELEMENTS 22
28 #define MAX_TEMPLATES 50
29 #define MAX_COLORNAMELENGTH 30
30 #define MAX_TEMPLATENAMELENTGH 80
32 /* Some typedefs for appearance */
35 COLORREF crColor
[NUM_COLORS
];
36 LOGFONT lfFont
[NUM_FONTS
];
37 UINT64 Size
[NUM_SIZES
];
47 TCHAR strDisplayName
[MAX_TEMPLATENAMELENTGH
];
48 TCHAR strLegacyName
[MAX_TEMPLATENAMELENTGH
];
62 /* This is the global structure used to store the current values.
63 A pointer of this get's passed to the functions either directly
64 or by passing hwnd and getting the pointer by GetWindowLongPtr */
65 typedef struct tagGLOBALS
67 THEME_PRESET ThemeTemplates
[MAX_TEMPLATES
];
70 INT ColorList
[NUM_COLORS
];
73 COLORREF crCOLOR_BTNFACE
;
74 COLORREF crCOLOR_BTNSHADOW
;
75 COLORREF crCOLOR_BTNTEXT
;
76 COLORREF crCOLOR_BTNHIGHLIGHT
;
82 extern const ASSIGNMENT g_Assignment
[NUM_ELEMENTS
];
83 extern const TCHAR g_RegColorNames
[NUM_COLORS
][MAX_COLORNAMELENGTH
];
84 extern const INT g_SizeMetric
[NUM_SIZES
];
86 /* prototypes for appearance.c */
87 INT_PTR CALLBACK
AppearancePageProc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);
89 /* prototypes for advappearancedlg.c */
90 INT_PTR CALLBACK
AdvAppearanceDlgProc(HWND hwndDlg
, UINT uMsg
, WPARAM wParam
, LPARAM lParam
);