Commit b58004d9 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

Draw only visible tabs.

parent bc3ad879
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment