From 4f7122ff29356520344ebef6ad574413289b46ad Mon Sep 17 00:00:00 2001 From: Matthias Kupfer Date: Thu, 19 Feb 2009 11:43:26 +0000 Subject: [PATCH] - initial default message handler for WM_SYSCOLORCHANGE messages svn path=/trunk/; revision=39680 --- reactos/dll/win32/user32/windows/defwnd.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reactos/dll/win32/user32/windows/defwnd.c b/reactos/dll/win32/user32/windows/defwnd.c index a86806767fd..33f90d6959c 100644 --- a/reactos/dll/win32/user32/windows/defwnd.c +++ b/reactos/dll/win32/user32/windows/defwnd.c @@ -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: {