comctl32/tab: Draw tab button properly on TCIS_BUTTONPRESSED state.

This commit is contained in:
Nikolay Sivov 2009-03-25 16:34:48 -04:00 committed by Alexandre Julliard
parent 289dca2e0e
commit 751732e694
1 changed files with 7 additions and 2 deletions

View File

@ -1962,8 +1962,13 @@ static void TAB_DrawItem(const TAB_INFO *infoPtr, HDC hdc, INT iItem)
}
else /* ! selected */
{
if (!(lStyle & TCS_FLATBUTTONS))
DrawEdge(hdc, &r, EDGE_RAISED, BF_SOFT|BF_RECT);
DWORD state = infoPtr->items[iItem].dwState;
if (state & TCIS_BUTTONPRESSED)
DrawEdge(hdc, &r, EDGE_SUNKEN, BF_SOFT|BF_RECT);
else
if (!(lStyle & TCS_FLATBUTTONS))
DrawEdge(hdc, &r, EDGE_RAISED, BF_SOFT|BF_RECT);
}
}
else /* !TCS_BUTTONS */