Fix for dreamweaver site definition dialog. Need to initialize the

rect for a tab control to an empty rect if it is not visible.
This commit is contained in:
Aric Stewart 2005-08-22 14:07:22 +00:00 committed by Alexandre Julliard
parent 79b29158e8
commit bf129c41de
1 changed files with 12 additions and 1 deletions

View File

@ -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"