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);
|
||||
FillRect(hdc, &rTemp, hbr);
|
||||
if (iItem == infoPtr->iHotTracked)
|
||||
{
|
||||
DrawEdge(hdc, &rTemp, EDGE_RAISED, BF_SOFT|BF_TOPLEFT);
|
||||
DrawEdge(hdc, &rTemp, EDGE_RAISED, BF_FLAT|BF_BOTTOMRIGHT);
|
||||
}
|
||||
DrawEdge(hdc, &rTemp, BDR_RAISEDINNER, BF_RECT);
|
||||
}
|
||||
else
|
||||
FillRect(hdc, &rTemp, hbr);
|
||||
|
|
Loading…
Reference in New Issue