comctl32: Correct listview hittest check to include the state rect.

This commit is contained in:
Lei Zhang 2008-03-19 17:11:56 -07:00 committed by Alexandre Julliard
parent da98243ea1
commit 74f2f09295
1 changed files with 4 additions and 1 deletions

View File

@ -6256,7 +6256,10 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
if (uView == LVS_REPORT)
rcBounds = rcBox;
else
{
UnionRect(&rcBounds, &rcIcon, &rcLabel);
UnionRect(&rcBounds, &rcBounds, &rcState);
}
TRACE("rcBounds=%s\n", wine_dbgstr_rect(&rcBounds));
if (!PtInRect(&rcBounds, opt)) return -1;