mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
Handle SysColor background brushes
svn path=/trunk/; revision=5589
This commit is contained in:
parent
acffe270aa
commit
dd426f79b3
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: defwnd.c,v 1.66 2003/08/15 10:51:23 rcampbell Exp $
|
/* $Id: defwnd.c,v 1.67 2003/08/15 17:06:11 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -1676,6 +1676,14 @@ User32DefWindowProc(HWND hWnd,
|
||||||
|
|
||||||
RECT Rect;
|
RECT Rect;
|
||||||
HBRUSH hBrush = (HBRUSH)GetClassLongW(hWnd, GCL_HBRBACKGROUND);
|
HBRUSH hBrush = (HBRUSH)GetClassLongW(hWnd, GCL_HBRBACKGROUND);
|
||||||
|
if (NULL == hBrush)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
if (((DWORD) hBrush) <= 25)
|
||||||
|
{
|
||||||
|
hBrush = GetSysColorBrush((DWORD) hBrush - 1);
|
||||||
|
}
|
||||||
GetClipBox((HDC)wParam, &Rect);
|
GetClipBox((HDC)wParam, &Rect);
|
||||||
FillRect((HDC)wParam, &Rect, hBrush);
|
FillRect((HDC)wParam, &Rect, hBrush);
|
||||||
return(1);
|
return(1);
|
||||||
|
|
Loading…
Reference in a new issue