From: ubuntor2000@gmail.com Subject: comctl32: Fix buttons becoming unthemed when pressed/released Message-Id: <1439697781-32757-1-git-send-email-ubuntor2000@gmail.com> Date: Sun, 16 Aug 2015 00:03:01 -0400 From: Samuel Kim Fixes 37584. --- dlls/comctl32/theme_button.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dlls/comctl32/theme_button.c b/dlls/comctl32/theme_button.c index 327c76b..7cf4928 100644 --- a/dlls/comctl32/theme_button.c +++ b/dlls/comctl32/theme_button.c @@ -373,6 +373,15 @@ LRESULT CALLBACK THEMING_ButtonSubclassProc(HWND hwnd, UINT msg, * which will do the repaint. */ break; + case WM_LBUTTONDBLCLK: + case WM_LBUTTONDOWN: + case WM_LBUTTONUP: + theme = GetWindowTheme(hwnd); + if (theme) { + InvalidateRect(hwnd, NULL, FALSE); + } + return THEMING_CallOriginalClass(hwnd, msg, wParam, lParam); + case WM_PAINT: theme = GetWindowTheme(hwnd); if (theme && BUTTON_Paint(theme, hwnd, (HDC)wParam)) -- 2.4.6