Nikolay Sivov (@nsivov) commented about dlls/comctl32/ipaddress.c:
+static void IPADDRESS_DrawBackground (const IPADDRESS_INFO *infoPtr, HDC hdc, RECT *rect) +{
- COLORREF background_color, foreground_color;
- HTHEME theme = GetWindowTheme(infoPtr->Self);
- if (theme)
- {
int state = IPADDRESS_GetThemeTextState(infoPtr);if (IsThemeBackgroundPartiallyTransparent(theme, EP_EDITTEXT, state))DrawThemeParentBackground(infoPtr->Self, hdc, rect);DrawThemeBackground(theme, hdc, EP_EDITTEXT, state, rect, 0);return;- }
- IPADDRESS_GetTextColors(infoPtr, &background_color, &foreground_color);
- FillRect(hdc, rect, (HBRUSH)(DWORD_PTR)(background_color + 1));
I think just (HBRUSH) should do it, no?