[ros-diffs] [mkupfer] 39680: - initial default message handler for WM_SYSCOLORCHANGE messages

mkupfer at svn.reactos.org mkupfer at svn.reactos.org
Thu Feb 19 12:43:26 CET 2009


Author: mkupfer
Date: Thu Feb 19 05:43:26 2009
New Revision: 39680

URL: http://svn.reactos.org/svn/reactos?rev=39680&view=rev
Log:
- initial default message handler for WM_SYSCOLORCHANGE messages

Modified:
    trunk/reactos/dll/win32/user32/windows/defwnd.c

Modified: trunk/reactos/dll/win32/user32/windows/defwnd.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/defwnd.c?rev=39680&r1=39679&r2=39680&view=diff
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/defwnd.c [iso-8859-1] Thu Feb 19 05:43:26 2009
@@ -1202,6 +1202,18 @@
             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:
         {



More information about the Ros-diffs mailing list