comctl32/tab: Fix hottracked button size.
This commit is contained in:
parent
666c0a57cc
commit
59ae274ac3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue