Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b704a6f3
Commit
b704a6f3
authored
Nov 25, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 25, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleacc: Add partial Window_accHitTest implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9d293a1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
+30
-3
window.c
dlls/oleacc/window.c
+30
-3
No files found.
dlls/oleacc/window.c
View file @
b704a6f3
...
...
@@ -247,11 +247,38 @@ static HRESULT WINAPI Window_accNavigate(IAccessible *iface,
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
Window_accHitTest
(
IAccessible
*
iface
,
LONG
xLeft
,
LONG
yTop
,
VARIANT
*
pvarID
)
static
HRESULT
WINAPI
Window_accHitTest
(
IAccessible
*
iface
,
LONG
x
,
LONG
y
,
VARIANT
*
v
)
{
Window
*
This
=
impl_from_Window
(
iface
);
FIXME
(
"(%p)->(%d %d %p)
\n
"
,
This
,
xLeft
,
yTop
,
pvarID
);
IDispatch
*
disp
;
POINT
pt
;
HRESULT
hr
;
RECT
rect
;
TRACE
(
"(%p)->(%d %d %p)
\n
"
,
This
,
x
,
y
,
v
);
V_VT
(
v
)
=
VT_EMPTY
;
if
(
!
GetClientRect
(
This
->
hwnd
,
&
rect
))
return
E_FAIL
;
if
(
!
ClientToScreen
(
This
->
hwnd
,
(
POINT
*
)
&
rect
)
||
!
ClientToScreen
(
This
->
hwnd
,
&
((
POINT
*
)
&
rect
)[
1
]))
return
E_FAIL
;
pt
.
x
=
x
;
pt
.
y
=
y
;
if
(
PtInRect
(
&
rect
,
pt
))
{
hr
=
AccessibleObjectFromWindow
(
This
->
hwnd
,
OBJID_CLIENT
,
&
IID_IDispatch
,
(
void
**
)
&
disp
);
if
(
FAILED
(
hr
))
return
hr
;
if
(
!
disp
)
return
E_FAIL
;
V_VT
(
v
)
=
VT_DISPATCH
;
V_DISPATCH
(
v
)
=
disp
;
return
S_OK
;
}
FIXME
(
"non-client area not handled yet
\n
"
);
return
E_NOTIMPL
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment