mirror of
https://github.com/reactos/reactos.git
synced 2024-11-27 13:33:32 +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;
|
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));
|
FillRect (hdc, &rect, (HBRUSH)(DWORD_PTR)(bgCol+1));
|
||||||
|
#endif
|
||||||
DrawEdge (hdc, &rect, EDGE_SUNKEN, BF_RECT | BF_ADJUST);
|
DrawEdge (hdc, &rect, EDGE_SUNKEN, BF_RECT | BF_ADJUST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user