- initial default message handler for WM_SYSCOLORCHANGE messages

svn path=/trunk/; revision=39680
This commit is contained in:
Matthias Kupfer 2009-02-19 11:43:26 +00:00
parent daec6ac09d
commit 4f7122ff29

View 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:
{