Commit 89147996 authored by Luc Tourangeau's avatar Luc Tourangeau Committed by Alexandre Julliard

When the vertical scrollbar is removed, the background was not

properly repainted.
parent d8a8b00a
......@@ -2580,9 +2580,10 @@ LRESULT WINAPI ListBoxWndProc( HWND hwnd, UINT msg,
case WM_ERASEBKGND:
if (IS_OWNERDRAW(descr))
{
RECT rect = { 0, 0, descr->width, descr->height };
RECT rect;
HBRUSH hbrush = SendMessageA( descr->owner, WM_CTLCOLORLISTBOX,
wParam, (LPARAM)wnd->hwndSelf );
GetClientRect(hwnd, &rect);
if (hbrush) FillRect( (HDC)wParam, &rect, hbrush );
}
retvalue =1;
......
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