Commit 59ae274a authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/tab: Fix hottracked button size.

parent 666c0a57
...@@ -1480,11 +1480,12 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect ...@@ -1480,11 +1480,12 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
{ {
if (lStyle & TCS_FLATBUTTONS) if (lStyle & TCS_FLATBUTTONS)
{ {
FillRect(hdc, drawRect, hbr); InflateRect(&rTemp, 2, 2);
FillRect(hdc, &rTemp, hbr);
if (iItem == infoPtr->iHotTracked) if (iItem == infoPtr->iHotTracked)
{ {
DrawEdge(hdc, drawRect, EDGE_RAISED, BF_SOFT|BF_TOPLEFT); DrawEdge(hdc, &rTemp, EDGE_RAISED, BF_SOFT|BF_TOPLEFT);
DrawEdge(hdc, drawRect, EDGE_RAISED, BF_FLAT|BF_BOTTOMRIGHT); DrawEdge(hdc, &rTemp, EDGE_RAISED, BF_FLAT|BF_BOTTOMRIGHT);
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment