- initial default message handler for WM_SYSCOLORCHANGE messages
authorMatthias Kupfer <mkupfer@reactos.org>
Thu, 19 Feb 2009 11:43:26 +0000 (11:43 +0000)
committerMatthias Kupfer <mkupfer@reactos.org>
Thu, 19 Feb 2009 11:43:26 +0000 (11:43 +0000)
svn path=/trunk/; revision=39680

reactos/dll/win32/user32/windows/defwnd.c

index a868067..33f90d6 100644 (file)
@@ -1202,6 +1202,18 @@ User32DefWindowProc(HWND hWnd,
             return (0);
         }
 
+        case WM_SYSCOLORCHANGE:
+        {
+            /* force to redraw non-client area */
+            DefWndNCPaint(hWnd, (HRGN)1, -1);
+            /* Use InvalidateRect to redraw client area, enable
+             * erase to redraw all subcontrols otherwise send the
+             * WM_SYSCOLORCHANGE to child windows/controls is required
+             */
+            InvalidateRect(hWnd,NULL,TRUE);
+            return (0);
+        }
+
         case WM_PAINTICON:
         case WM_PAINT:
         {