From c932852bd40490bbcab896231a6c3306fbf6a53c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Miko=C5=82aj=20Zalewski?= Date: Thu, 18 May 2006 21:15:09 +0200 Subject: [PATCH] comctl32: header: Don't erase the background in HEADER_Refresh. --- dlls/comctl32/header.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c index e488d449088..9e3775959df 100644 --- a/dlls/comctl32/header.c +++ b/dlls/comctl32/header.c @@ -459,7 +459,7 @@ HEADER_Refresh (HWND hwnd, HDC hdc) hOldFont = SelectObject (hdc, hFont); /* draw Background */ - if (theme == NULL) { + if (infoPtr->uNumItem == 0 && theme == NULL) { hbrBk = GetSysColorBrush(COLOR_3DFACE); FillRect(hdc, &rect, hbrBk); } @@ -478,9 +478,9 @@ HEADER_Refresh (HWND hwnd, HDC hdc) } else { if (GetWindowLongW (hwnd, GWL_STYLE) & HDS_BUTTONS) - DrawEdge (hdc, &rect, EDGE_RAISED, BF_TOP|BF_LEFT|BF_BOTTOM|BF_SOFT); + DrawEdge (hdc, &rect, EDGE_RAISED, BF_TOP|BF_LEFT|BF_BOTTOM|BF_SOFT|BF_MIDDLE); else - DrawEdge (hdc, &rect, EDGE_ETCHED, BF_BOTTOM); + DrawEdge (hdc, &rect, EDGE_ETCHED, BF_BOTTOM|BF_MIDDLE); } } -- 2.11.4.GIT