comctl32/tab: Simplify hottracked button painting.
This commit is contained in:
parent
09d7fa707f
commit
bc22a89306
|
@ -1483,10 +1483,7 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
|
||||||
InflateRect(&rTemp, 2, 2);
|
InflateRect(&rTemp, 2, 2);
|
||||||
FillRect(hdc, &rTemp, hbr);
|
FillRect(hdc, &rTemp, hbr);
|
||||||
if (iItem == infoPtr->iHotTracked)
|
if (iItem == infoPtr->iHotTracked)
|
||||||
{
|
DrawEdge(hdc, &rTemp, BDR_RAISEDINNER, BF_RECT);
|
||||||
DrawEdge(hdc, &rTemp, EDGE_RAISED, BF_SOFT|BF_TOPLEFT);
|
|
||||||
DrawEdge(hdc, &rTemp, EDGE_RAISED, BF_FLAT|BF_BOTTOMRIGHT);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
FillRect(hdc, &rTemp, hbr);
|
FillRect(hdc, &rTemp, hbr);
|
||||||
|
|
Loading…
Reference in New Issue