From b896b92061d1b0f98fe526065e49992e2e9dac60 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Mon, 23 Mar 2009 15:47:16 -0400 Subject: [PATCH] comctl32/tab: Fix button background filling on TCS_BUTTONS. --- dlls/comctl32/tab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index ae4f035049c..b8f638d7523 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -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); }