mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 19:43:31 +08:00
[COMCTL32] IP Address control: Fix background drawing (#6133)
Based on KRosUser's suggestion. bgCol is a COLORREF value, not a color index. Create a brush from bgCol. CORE-9853
This commit is contained in:
parent
e5c5efe2ad
commit
414f3da7a6
@ -178,7 +178,15 @@ static LRESULT IPADDRESS_Draw (const IPADDRESS_INFO *infoPtr, HDC hdc)
|
||||
fgCol = comctl32_color.clrGrayText;
|
||||
}
|
||||
|
||||
#ifdef __REACTOS__
|
||||
{
|
||||
HBRUSH brush = CreateSolidBrush(bgCol);
|
||||
FillRect(hdc, &rect, brush);
|
||||
DeleteObject(brush);
|
||||
}
|
||||
#else
|
||||
FillRect (hdc, &rect, (HBRUSH)(DWORD_PTR)(bgCol+1));
|
||||
#endif
|
||||
DrawEdge (hdc, &rect, EDGE_SUNKEN, BF_RECT | BF_ADJUST);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user