From e6af4ec6bd6b7cb7d54f99691bf7951682cfcad1 Mon Sep 17 00:00:00 2001 From: Vitaliy Margolen Date: Tue, 4 Mar 2003 04:34:03 +0000 Subject: [PATCH] Fix invisible tabs in TabControls with fixed tab width. --- dlls/comctl32/tab.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index 12e343e1453..3e6b2491004 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -2538,7 +2538,8 @@ TAB_SetItemSize (HWND hwnd, WPARAM wParam, LPARAM lParam) { lResult = MAKELONG(infoPtr->tabWidth, infoPtr->tabHeight); infoPtr->tabWidth = (INT)LOWORD(lParam); - infoPtr->tabHeight = (INT)HIWORD(lParam); + /* If requested Height is 0 this means that program wants to use default. */ + if (HIWORD(lParam)) infoPtr->tabHeight = (INT)HIWORD(lParam); TRACE("was h=%d,w=%d, now h=%d,w=%d\n", HIWORD(lResult), LOWORD(lResult), infoPtr->tabHeight, infoPtr->tabWidth); -- 2.11.4.GIT