comctl32/tab: Draw hottracked tab button properly (resent)

Nikolay Sivov bunglehead at gmail.com
Sun Apr 5 15:50:08 CDT 2009


With patch this time.

This makes hottracked tab button look like it does in native.
Bounding rectangle is still wrong but it's another problem,
anyway now it looks better.

Changelog:
    - Draw hottracked tab button properly

>From 9ce89a72e154b7e2e34899cca0d980a7e81ec818 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Sun, 5 Apr 2009 09:39:36 -0400
Subject: Draw hottracked tab button properly

---
 dlls/comctl32/tab.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index 1830b2d..ac344eb 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -1482,7 +1482,10 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
 	    {
 		FillRect(hdc, drawRect, hbr);
 		if (iItem == infoPtr->iHotTracked)
-		    DrawEdge(hdc, drawRect, EDGE_RAISED, BF_SOFT|BF_RECT);
+		{
+		    DrawEdge(hdc, drawRect, EDGE_RAISED, BF_SOFT|BF_TOPLEFT);
+		    DrawEdge(hdc, drawRect, EDGE_RAISED, BF_FLAT|BF_BOTTOMRIGHT);
+		}
 	    }
 	    else
 		FillRect(hdc, &rTemp, hbr);
-- 
1.5.6.5





More information about the wine-patches mailing list