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;
|
BOOL deleteBrush = TRUE;
|
||||||
RECT rTemp = *drawRect;
|
RECT rTemp = *drawRect;
|
||||||
|
|
||||||
InflateRect(&rTemp, -2, -2);
|
|
||||||
if (lStyle & TCS_BUTTONS)
|
if (lStyle & TCS_BUTTONS)
|
||||||
{
|
{
|
||||||
if (iItem == infoPtr->iSelected)
|
if (iItem == infoPtr->iSelected)
|
||||||
|
@ -1473,6 +1472,7 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
|
||||||
}
|
}
|
||||||
else /* !TCS_BUTTONS */
|
else /* !TCS_BUTTONS */
|
||||||
{
|
{
|
||||||
|
InflateRect(&rTemp, -2, -2);
|
||||||
if (!GetWindowTheme (infoPtr->hwnd))
|
if (!GetWindowTheme (infoPtr->hwnd))
|
||||||
FillRect(hdc, &rTemp, hbr);
|
FillRect(hdc, &rTemp, hbr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue