Fix invisible tabs in TabControls with fixed tab width.

This commit is contained in:
Vitaliy Margolen 2003-03-04 04:34:03 +00:00 committed by Alexandre Julliard
parent 929af6bb69
commit e6af4ec6bd
1 changed files with 2 additions and 1 deletions

View File

@ -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);