[COMCTL32] -Redraw the button when we get a WM_THEMECHANGED.
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 25 Feb 2017 09:24:40 +0000 (09:24 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 25 Feb 2017 09:24:40 +0000 (09:24 +0000)
svn path=/trunk/; revision=73899

reactos/dll/win32/comctl32/button.c

index 9319b9c..e1fdb0b 100644 (file)
@@ -380,6 +380,7 @@ LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
     case WM_THEMECHANGED:
         CloseThemeData (GetWindowTheme(hWnd));
         OpenThemeData(hWnd, WC_BUTTONW);
+        InvalidateRect(hWnd, NULL, FALSE);
         break;
 
     case WM_MOUSEHOVER: