Commit dbf5a479 authored by Susan Farley's avatar Susan Farley Committed by Alexandre Julliard

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.
parent 3b6c5dce
......@@ -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;
......
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