17#define SAVE_CHECKBOX(__CONTROL_ID, __MEMBER) \
19 state = SendDlgItemMessageW(hwndDlg, __CONTROL_ID, BM_GETCHECK, 0, 0); \
20 g->SchemeAdv.Effects.__MEMBER = \
21 ((state == BST_CHECKED) != (__CONTROL_ID == IDC_EFFAPPEARANCE_KEYBOARDCUES)); \
24#define SAVE_CHECKBOX_SCH(__CONTROL_ID, __MEMBER) \
26 state = SendDlgItemMessageW(hwndDlg, __CONTROL_ID, BM_GETCHECK, 0, 0); \
27 g->SchemeAdv.__MEMBER = (state == BST_CHECKED); \
30#define RSET_COMBOBOX(__CONTROL_ID, __PARENT_MEMBER, __MEMBER) \
32 SendDlgItemMessageW(hwndDlg, __CONTROL_ID, CB_SETCURSEL, (WPARAM)g->SchemeAdv.Effects.__MEMBER, 0); \
33 EnableWindow(GetDlgItem(hwndDlg, __CONTROL_ID), g->SchemeAdv.Effects.__PARENT_MEMBER); \
53 g->bSchemeChanged =
TRUE;
69 for (iElement = From; iElement <= To; iElement++)
83 g->SchemeAdv =
g->Scheme;
85#define INIT_CHECKBOX(__CONTROL_ID, __MEMBER) \
88 ((g->SchemeAdv.Effects.__MEMBER) != (__CONTROL_ID == IDC_EFFAPPEARANCE_KEYBOARDCUES)) \
89 ? BST_CHECKED : BST_UNCHECKED; \
90 SendDlgItemMessageW(hwndDlg, __CONTROL_ID, BM_SETCHECK, state, 0); \
93#define INIT_CHECKBOX_SCH(__CONTROL_ID, __MEMBER) \
96 ((g->SchemeAdv.__MEMBER) == TRUE) \
97 ? BST_CHECKED : BST_UNCHECKED; \
98 SendDlgItemMessageW(hwndDlg, __CONTROL_ID, BM_SETCHECK, state, 0); \
101#define FILL_COMBOBOX(__CONTROL_ID, __FIRST_STR, __LAST_STR) \
102 AddToCombobox(__CONTROL_ID, hwndDlg, __FIRST_STR, __LAST_STR)
154 g->SchemeAdv =
g->Scheme;
176 g->SchemeAdv.Effects.bMenuFade =
#define IDS_CLEARTYPEEFFECT
#define IDC_EFFAPPEARANCE_SETDROPSHADOW
#define IDC_EFFAPPEARANCE_DRAGFULLWINDOWS
#define IDS_STANDARDEFFECT
#define IDC_EFFAPPEARANCE_FLATMENUS
#define IDC_EFFAPPEARANCE_SMOOTHING
#define IDC_EFFAPPEARANCE_ANIMATIONTYPE
#define IDC_EFFAPPEARANCE_KEYBOARDCUES
#define IDC_EFFAPPEARANCE_ANIMATION
#define IDC_EFFAPPEARANCE_SMOOTHINGTYPE
#define SAVE_CHECKBOX(__CONTROL_ID, __MEMBER)
static VOID EffAppearanceDlg_Init(HWND hwndDlg, GLOBALS *g)
static VOID AddToCombobox(INT Combo, HWND hwndDlg, INT From, INT To)
#define SAVE_CHECKBOX_SCH(__CONTROL_ID, __MEMBER)
#define FILL_COMBOBOX(__CONTROL_ID, __FIRST_STR, __LAST_STR)
#define RSET_COMBOBOX(__CONTROL_ID, __PARENT_MEMBER, __MEMBER)
#define INIT_CHECKBOX_SCH(__CONTROL_ID, __MEMBER)
static VOID EffAppearanceDlgSaveCurrentValues(HWND hwndDlg, GLOBALS *g)
INT_PTR CALLBACK EffAppearanceDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
#define INIT_CHECKBOX(__CONTROL_ID, __MEMBER)
static VOID EffAppearanceDlgUpdateControls(HWND hwndDlg, GLOBALS *g)
_In_ WDFCOLLECTION _In_ ULONG Index
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define SendDlgItemMessage
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)