comctl32/tab: Draw hottracked tab button properly.

This commit is contained in:
Nikolay Sivov 2009-04-05 09:39:36 -04:00 committed by Alexandre Julliard
parent a932fdcb2f
commit 483083e306
1 changed files with 4 additions and 1 deletions

View File

@ -1482,7 +1482,10 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
{
FillRect(hdc, drawRect, hbr);
if (iItem == infoPtr->iHotTracked)
DrawEdge(hdc, drawRect, EDGE_RAISED, BF_SOFT|BF_RECT);
{
DrawEdge(hdc, drawRect, EDGE_RAISED, BF_SOFT|BF_TOPLEFT);
DrawEdge(hdc, drawRect, EDGE_RAISED, BF_FLAT|BF_BOTTOMRIGHT);
}
}
else
FillRect(hdc, &rTemp, hbr);