mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:13:56 +00:00
comctl32: Correct listview hittest check to include the state rect.
This commit is contained in:
parent
da98243ea1
commit
74f2f09295
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue