[1/2] comctl32/tab: Fix hottracked button size
Nikolay Sivov
bunglehead at gmail.com
Mon Apr 6 16:25:49 CDT 2009
Hottracked rectangle should be bigger. Tested with different item sizes,
looks like expected.
Changelog:
- Fix hottracked button size
>From 8b3a29564d66581e0b280b0e4b355f1cf6420a92 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Mon, 6 Apr 2009 17:10:48 -0400
Subject: Fix hottracked button size
---
dlls/comctl32/tab.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index a7e925f..525d17b 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -1480,11 +1480,12 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
{
if (lStyle & TCS_FLATBUTTONS)
{
- FillRect(hdc, drawRect, hbr);
+ InflateRect(&rTemp, 2, 2);
+ FillRect(hdc, &rTemp, hbr);
if (iItem == infoPtr->iHotTracked)
{
- DrawEdge(hdc, drawRect, EDGE_RAISED, BF_SOFT|BF_TOPLEFT);
- DrawEdge(hdc, drawRect, EDGE_RAISED, BF_FLAT|BF_BOTTOMRIGHT);
+ DrawEdge(hdc, &rTemp, EDGE_RAISED, BF_SOFT|BF_TOPLEFT);
+ DrawEdge(hdc, &rTemp, EDGE_RAISED, BF_FLAT|BF_BOTTOMRIGHT);
}
}
else
--
1.5.6.5
More information about the wine-patches
mailing list