Commit 52ece0ef authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Use GetSysColorBrush(COLOR_WINDOW) when there is no brush for drawing

background in listbox.
parent f063d043
......@@ -2986,8 +2986,14 @@ static LRESULT WINAPI ListBoxWndProc_locked( WND* wnd, UINT msg,
RECT rect;
HBRUSH hbrush = SendMessageW( descr->owner, WM_CTLCOLORLISTBOX,
wParam, (LPARAM)wnd->hwndSelf );
TRACE("hbrush = %04x\n", hbrush);
if(!hbrush)
hbrush = GetSysColorBrush(COLOR_WINDOW);
if(hbrush)
{
GetClientRect(hwnd, &rect);
if (hbrush) FillRect( (HDC)wParam, &rect, hbrush );
FillRect((HDC)wParam, &rect, hbrush);
}
}
return 1;
case WM_DROPFILES:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment