comctl32/listview: Fix hittest flag calculation for negative Y values on report mode.
This commit is contained in:
parent
86e4d1cdbe
commit
2f989163bd
|
@ -6820,9 +6820,7 @@ static INT LISTVIEW_HitTest(const LISTVIEW_INFO *infoPtr, LPLVHITTESTINFO lpht,
|
||||||
else
|
else
|
||||||
opt.y = lpht->pt.y;
|
opt.y = lpht->pt.y;
|
||||||
|
|
||||||
if (infoPtr->rcList.top > opt.y)
|
if (infoPtr->rcList.bottom < opt.y)
|
||||||
lpht->flags |= LVHT_ABOVE;
|
|
||||||
else if (infoPtr->rcList.bottom < opt.y)
|
|
||||||
lpht->flags |= LVHT_BELOW;
|
lpht->flags |= LVHT_BELOW;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -2675,7 +2675,7 @@ static void test_hittest(void)
|
||||||
/* subitem returned with -1 item too */
|
/* subitem returned with -1 item too */
|
||||||
x = pos.x + 150;
|
x = pos.x + 150;
|
||||||
y = -10;
|
y = -10;
|
||||||
test_lvm_subitemhittest(hwnd, x, y, -1, 1, LVHT_NOWHERE, FALSE, FALSE, TRUE, __LINE__);
|
test_lvm_subitemhittest(hwnd, x, y, -1, 1, LVHT_NOWHERE, FALSE, FALSE, FALSE, __LINE__);
|
||||||
/* parent client area is 100x100 by default */
|
/* parent client area is 100x100 by default */
|
||||||
MoveWindow(hwnd, 0, 0, 300, 100, FALSE);
|
MoveWindow(hwnd, 0, 0, 300, 100, FALSE);
|
||||||
x = pos.x + 150; /* outside column */
|
x = pos.x + 150; /* outside column */
|
||||||
|
|
Loading…
Reference in New Issue