Commit bf129c41 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

Fix for dreamweaver site definition dialog. Need to initialize the

rect for a tab control to an empty rect if it is not visible.
parent 79b29158
......@@ -329,7 +329,18 @@ static BOOL TAB_InternalGetItemRect(
if ( (infoPtr->uNumItem <= 0) ||
(itemIndex >= infoPtr->uNumItem) ||
(!((lStyle & TCS_MULTILINE) || (lStyle & TCS_VERTICAL)) && (itemIndex < infoPtr->leftmostVisible)) )
return FALSE;
{
TRACE("Not Visible\n");
/* need to initialize these to empty rects */
if (itemRect)
{
memset(itemRect,0,sizeof(RECT));
itemRect->bottom = infoPtr->tabHeight;
}
if (selectedRect)
memset(selectedRect,0,sizeof(RECT));
return FALSE;
}
/*
* Avoid special cases in this procedure by assigning the "out"
......
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