comctl32/tab: Fix button background filling on TCS_BUTTONS.

This commit is contained in:
Nikolay Sivov 2009-03-23 15:47:16 -04:00 committed by Alexandre Julliard
parent 4585148547
commit b896b92061
1 changed files with 1 additions and 1 deletions

View File

@ -1433,7 +1433,6 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
BOOL deleteBrush = TRUE;
RECT rTemp = *drawRect;
InflateRect(&rTemp, -2, -2);
if (lStyle & TCS_BUTTONS)
{
if (iItem == infoPtr->iSelected)
@ -1473,6 +1472,7 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
}
else /* !TCS_BUTTONS */
{
InflateRect(&rTemp, -2, -2);
if (!GetWindowTheme (infoPtr->hwnd))
FillRect(hdc, &rTemp, hbr);
}