comctl32: Fix buttons becoming unthemed when pressed/released

ubuntor2000 at gmail.com ubuntor2000 at gmail.com
Sat Aug 15 23:03:01 CDT 2015


From: Samuel Kim <ubuntor2000 at gmail.com>

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




More information about the wine-patches mailing list