Index: theme_button.c =================================================================== --- theme_button.c (révision 64131) +++ theme_button.c (copie de travail) @@ -23,6 +23,8 @@ #define BUTTON_TYPE 0x0f /* bit mask for the available button types */ +#if 0 + /* These are indices into a states array to determine the theme state for a given theme part. */ typedef enum { @@ -258,6 +260,8 @@ return TRUE; } +#endif + /********************************************************************** * The button control subclass window proc. */ @@ -265,6 +269,7 @@ WPARAM wParam, LPARAM lParam, ULONG_PTR dwRefData) { +#if 0 const WCHAR* themeClass = WC_BUTTONW; HTHEME theme; LRESULT result; @@ -339,8 +344,11 @@ } default: +#endif /* Call old proc */ return THEMING_CallOriginalClass(hwnd, msg, wParam, lParam); +#if 0 } return 0; +#endif } Index: theming.c =================================================================== --- theming.c (révision 64131) +++ theming.c (copie de travail) @@ -30,8 +30,8 @@ ULONG_PTR) DECLSPEC_HIDDEN; extern LRESULT CALLBACK THEMING_ComboSubclassProc (HWND, UINT, WPARAM, LPARAM, ULONG_PTR) DECLSPEC_HIDDEN; -extern LRESULT CALLBACK THEMING_DialogSubclassProc (HWND, UINT, WPARAM, LPARAM, - ULONG_PTR) DECLSPEC_HIDDEN; +// extern LRESULT CALLBACK THEMING_DialogSubclassProc (HWND, UINT, WPARAM, LPARAM, + // ULONG_PTR) DECLSPEC_HIDDEN; extern LRESULT CALLBACK THEMING_EditSubclassProc (HWND, UINT, WPARAM, LPARAM, ULONG_PTR) DECLSPEC_HIDDEN; extern LRESULT CALLBACK THEMING_ListBoxSubclassProc (HWND, UINT, WPARAM, LPARAM, @@ -46,7 +46,7 @@ THEMING_SUBCLASSPROC subclassProc; } subclasses[] = { /* Note: list must be sorted by class name */ - {dialogClass, THEMING_DialogSubclassProc}, + // {dialogClass, THEMING_DialogSubclassProc}, {WC_BUTTONW, THEMING_ButtonSubclassProc}, {WC_COMBOBOXW, THEMING_ComboSubclassProc}, {comboLboxClass, THEMING_ListBoxSubclassProc}, @@ -86,7 +86,7 @@ MAKE_SUBCLASS_PROC(2) MAKE_SUBCLASS_PROC(3) MAKE_SUBCLASS_PROC(4) -MAKE_SUBCLASS_PROC(5) +// MAKE_SUBCLASS_PROC(5) static const WNDPROC subclassProcs[NUM_SUBCLASSES] = { subclass_proc0, @@ -94,7 +94,7 @@ subclass_proc2, subclass_proc3, subclass_proc4, - subclass_proc5 + // subclass_proc5 }; /***********************************************************************