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/de... ============================================================================== --- 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: {