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