comctl32: Correct listview hittest check to include the state rect.
This commit is contained in:
parent
da98243ea1
commit
74f2f09295
|
@ -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, &rcIcon, &rcLabel);
|
||||
UnionRect(&rcBounds, &rcBounds, &rcState);
|
||||
}
|
||||
TRACE("rcBounds=%s\n", wine_dbgstr_rect(&rcBounds));
|
||||
if (!PtInRect(&rcBounds, opt)) return -1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue