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:
parent
3b6c5dce1e
commit
dbf5a4792c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue