Avoid resetting the background color when clearing out blank areas, as

it may have been set to something other than COLOR_WINDOW by the
application.
This commit is contained in:
Susan Farley 2000-08-06 03:35:52 +00:00 committed by Alexandre Julliard
parent 3b6c5dce1e
commit dbf5a4792c
1 changed files with 0 additions and 2 deletions

View File

@ -988,7 +988,6 @@ static LRESULT LISTBOX_Paint( WND *wnd, LB_DESCR *descr, HDC hdc )
if (!IS_OWNERDRAW(descr))
{
/* Clear the bottom of the column */
SetBkColor( hdc, GetSysColor( COLOR_WINDOW ) );
if (rect.top < descr->height)
{
rect.bottom = descr->height;
@ -1018,7 +1017,6 @@ static LRESULT LISTBOX_Paint( WND *wnd, LB_DESCR *descr, HDC hdc )
if (!IS_OWNERDRAW(descr))
{
/* Clear the remainder of the client area */
SetBkColor( hdc, GetSysColor( COLOR_WINDOW ) );
if (rect.top < descr->height)
{
rect.bottom = descr->height;