Use GetSysColorBrush(COLOR_WINDOW) when there is no brush for drawing
background in listbox.
diff --git a/controls/listbox.c b/controls/listbox.c
index a7da000..f50fe9a 100644
--- a/controls/listbox.c
+++ b/controls/listbox.c
@@ -2986,8 +2986,14 @@
RECT rect;
HBRUSH hbrush = SendMessageW( descr->owner, WM_CTLCOLORLISTBOX,
wParam, (LPARAM)wnd->hwndSelf );
- GetClientRect(hwnd, &rect);
- if (hbrush) FillRect( (HDC)wParam, &rect, hbrush );
+ TRACE("hbrush = %04x\n", hbrush);
+ if(!hbrush)
+ hbrush = GetSysColorBrush(COLOR_WINDOW);
+ if(hbrush)
+ {
+ GetClientRect(hwnd, &rect);
+ FillRect((HDC)wParam, &rect, hbrush);
+ }
}
return 1;
case WM_DROPFILES: