When the vertical scrollbar is removed, the background was not

properly repainted.
This commit is contained in:
Luc Tourangeau 1999-04-18 09:23:56 +00:00 committed by Alexandre Julliard
parent d8a8b00ae0
commit 891479963e
1 changed files with 2 additions and 1 deletions

View File

@ -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;