comctl32/tab: Fix button background filling on TCS_BUTTONS.
This commit is contained in:
parent
4585148547
commit
b896b92061
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue