18 if (
g->ActiveTheme.ThemeActive)
37 if (
g->ActiveTheme.ThemeActive ==
FALSE )
58 for (pCurrentStyle = pStyles;
64 if (pCurrentStyle == pActiveStyle)
76 g->ActiveTheme.Theme->ColoursList,
77 g->ActiveTheme.Color);
85 if (
g->ActiveTheme.Theme->SizesList)
86 pSizes =
g->ActiveTheme.Theme->SizesList;
112 g->bInitializing =
TRUE;
135 g->bThemeChanged =
TRUE;
136 g->bSchemeChanged =
TRUE;
146 g->ActiveTheme.ThemeActive =
FALSE;
156 g->ClassicTheme.Theme =
g->pThemes;
157 g->ClassicTheme.Color =
g->pThemes->ColoursList;
158 g->ClassicTheme.Size =
g->ClassicTheme.Color->ChildStyle;
161 if (
g->ActiveTheme.ThemeActive ==
FALSE)
162 g->ActiveTheme =
g->ClassicTheme;
174 for (pTheme =
g->pThemes; pTheme; pTheme = pTheme->
NextTheme)
178 if (pTheme ==
g->ActiveTheme.Theme)
184 if (
g->ActiveTheme.Theme)
233 if (
g ==
NULL ||
g->bInitializing)
243 g->Scheme =
g->SchemeAdv;
244 g->bSchemeChanged =
TRUE;
253 g->bSchemeChanged =
TRUE;
254 g->Scheme =
g->SchemeAdv;
265 if (
g->ActiveTheme.Color->ChildStyle !=
NULL)
266 g->ActiveTheme.Size =
g->ActiveTheme.Color->ChildStyle;
268 g->bSchemeChanged =
TRUE;
269 if (
g->ActiveTheme.ThemeActive)
270 g->bThemeChanged =
TRUE;
285 if (
g->ClassicTheme.Theme == pTheme)
286 g->ActiveTheme =
g->ClassicTheme;
289 g->ActiveTheme.Theme = pTheme;
292 g->ActiveTheme.ThemeActive =
TRUE;
295 g->bThemeChanged =
TRUE;
296 g->bSchemeChanged =
TRUE;
311 g->bSchemeChanged =
TRUE;
312 if (
g->ActiveTheme.ThemeActive)
313 g->bThemeChanged =
TRUE;
329 if (
g->bThemeChanged)
334 if (
g->bSchemeChanged)
337 if (
g->ActiveTheme.ThemeActive ==
FALSE)
338 g->ClassicTheme =
g->ActiveTheme;
343 g->bSchemeChanged =
FALSE;
INT_PTR CALLBACK AdvAppearanceDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static void AppearancePage_UpdateThemePreview(HWND hwndDlg, GLOBALS *g)
static INT_PTR AppearancePage_OnInit(HWND hwndDlg)
INT_PTR CALLBACK AppearancePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
static VOID AppearancePage_OnDestroy(HWND hwndDlg, GLOBALS *g)
static void AppearancePage_ShowSizes(HWND hwndDlg, GLOBALS *g)
static PVOID GetSelectedData(HWND hwndDlg, int nIDDlgItem)
static void AppearancePage_LoadSelectedScheme(HWND hwndDlg, GLOBALS *g)
static void AppearancePage_ShowColorSchemes(HWND hwndDlg, GLOBALS *g)
static void AppearancePage_ShowStyles(HWND hwndDlg, int nIDDlgItem, PTHEME_STYLE pStyles, PTHEME_STYLE pActiveStyle)
BOOL LoadSchemeFromReg(PCOLOR_SCHEME scheme, PTHEME_SELECTION pSelectedTheme)
struct _THEME_STYLE * PTHEME_STYLE
BOOL FindOrAppendTheme(IN PTHEME pThemeList, IN LPCWSTR pwszThemeFileName, IN LPCWSTR pwszColorBuff, IN LPCWSTR pwszSizeBuff, OUT PTHEME_SELECTION pSelectedTheme)
BOOL LoadSchemeFromTheme(PCOLOR_SCHEME scheme, PTHEME_SELECTION pSelectedTheme)
BOOL DrawThemePreview(HDC hdcMem, PCOLOR_SCHEME scheme, PTHEME_SELECTION pSelectedTheme, PRECT prcWindow)
BOOL GetActiveClassicTheme(PTHEME pThemeList, PTHEME_SELECTION pSelectedTheme)
VOID ApplyScheme(PCOLOR_SCHEME scheme, PTHEME_SELECTION pSelectedTheme)
BOOL ActivateTheme(PTHEME_SELECTION pSelectedTheme)
BOOL GetActiveTheme(PTHEME pThemeList, PTHEME_SELECTION pSelectedTheme)
INT_PTR CALLBACK EffAppearanceDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL LoadCurrentScheme(PCOLOR_SCHEME scheme)
#define IDC_APPEARANCE_VISUAL_STYLE
#define IDC_APPEARANCE_ADVANCED
#define IDC_APPEARANCE_EFFECTS
#define IDC_APPEARANCE_COLORSCHEME
#define IDD_ADVAPPEARANCE
#define IDC_APPEARANCE_PREVIEW
#define IDD_EFFAPPEARANCE
#define IDC_APPEARANCE_SIZE
#define HeapFree(x, y, z)
#define PVM_SET_HDC_PREVIEW
#define PropSheet_Changed(d, w)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
struct _THEME_STYLE * ChildStyle
struct _THEME_STYLE * NextStyle
THEME_STYLE * ColoursList
struct _THEME * NextTheme
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
struct tagNMHDR * LPNMHDR
HDC WINAPI GetDC(_In_opt_ HWND)
HWND WINAPI GetParent(_In_ HWND)
#define SendDlgItemMessage