[PATCH 2/2] oleacc: Add semi-stub and tests for AccessibleObjectFromPoint
Piotr Caban
piotr.caban at gmail.com
Tue Nov 23 05:01:30 CST 2021
Hi Alex,
On 11/23/21 07:02, Alex Henrie wrote:
> + hwnd = CreateWindowA("oleacc_test", "test", WS_OVERLAPPEDWINDOW, 0, 0, 0, 0, NULL, NULL, NULL, NULL);
> + ok(hwnd != NULL, "CreateWindow failed\n");
Invisible windows are ignored by AccessibleObjectFromPoint.
> +
> + hr = GetWindowRect(hwnd, &rect);
> + ok(hr, "GetWindowRect failed\n");
> +
> + point.x = rect.left;
> + point.y = rect.top;
> + hr = AccessibleObjectFromPoint(point, &acc, &cid);
> + ok(hr == S_OK, "got %x\n", hr);
> + ok(V_VT(&cid) == VT_I4, "got %#x, expected %#x\n", V_VT(&cid), VT_I4);
> + ok(V_I4(&cid) == CHILDID_SELF || broken(V_I4(&cid) == 1) /* <= vista */,
> + "got %#x, expected %#x\n", V_I4(&cid), CHILDID_SELF);
Please test hwnd associated with accessibility object (check_acc_hwnd
macro).
> + IAccessible_Release(acc);
Thanks,
Piotr
More information about the wine-devel
mailing list