Draw only visible tabs.

This commit is contained in:
Vitaliy Margolen 2005-04-13 14:40:12 +00:00 committed by Alexandre Julliard
parent bc3ad87998
commit b58004d9ae
1 changed files with 5 additions and 1 deletions

View File

@ -404,7 +404,11 @@ static BOOL TAB_InternalGetItemRect(
}
}
return TRUE;
/* Check for visibility */
if (lStyle & TCS_VERTICAL)
return (itemRect->top < clientRect.bottom) && (itemRect->bottom > clientRect.top);
else
return (itemRect->left < clientRect.right) && (itemRect->right > clientRect.left);
}
static inline BOOL