Mikołaj Zalewski : comctl32: header: Don' t erase the background in HEADER_Refresh.

Alexandre Julliard julliard at wine.codeweavers.com
Sat May 20 07:27:36 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: c932852bd40490bbcab896231a6c3306fbf6a53c
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=c932852bd40490bbcab896231a6c3306fbf6a53c

Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date:   Thu May 18 21:15:09 2006 +0200

comctl32: header: Don't erase the background in HEADER_Refresh.

---

 dlls/comctl32/header.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index e488d44..9e37759 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);
         }
     }
 




More information about the wine-cvs mailing list