Nikolay Sivov : comctl32/tab: Fix hottracked button size.
Alexandre Julliard
julliard at winehq.org
Tue Apr 7 09:04:38 CDT 2009
Module: wine
Branch: master
Commit: 59ae274ac30b88b0a25af9e3e403ab0a76201752
URL: http://source.winehq.org/git/wine.git/?a=commit;h=59ae274ac30b88b0a25af9e3e403ab0a76201752
Author: Nikolay Sivov <bunglehead at gmail.com>
Date: Mon Apr 6 17:10:48 2009 -0400
comctl32/tab: 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
More information about the wine-cvs
mailing list