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
88b5b6a5
Commit
88b5b6a5
authored
Mar 21, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleacc: Added AccessibleChildren implementation.
parent
15e13220
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
1 deletion
+48
-1
main.c
dlls/oleacc/main.c
+47
-0
oleacc.spec
dlls/oleacc/oleacc.spec
+1
-1
No files found.
dlls/oleacc/main.c
View file @
88b5b6a5
...
...
@@ -568,3 +568,50 @@ UINT WINAPI GetStateTextA(DWORD state_bit, CHAR *state_str, UINT state_str_len)
return
LoadStringA
(
oleacc_handle
,
state_id
,
tmp
,
sizeof
(
tmp
));
}
}
HRESULT
WINAPI
AccessibleChildren
(
IAccessible
*
container
,
LONG
start
,
LONG
count
,
VARIANT
*
children
,
LONG
*
children_cnt
)
{
IEnumVARIANT
*
ev
;
LONG
i
,
child_no
;
HRESULT
hr
;
TRACE
(
"%p %d %d %p %p
\n
"
,
container
,
start
,
count
,
children
,
children_cnt
);
if
(
!
container
||
!
children
||
!
children_cnt
)
return
E_INVALIDARG
;
for
(
i
=
0
;
i
<
count
;
i
++
)
VariantInit
(
children
+
i
);
hr
=
IAccessible_QueryInterface
(
container
,
&
IID_IEnumVARIANT
,
(
void
**
)
&
ev
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IEnumVARIANT_Reset
(
ev
);
if
(
SUCCEEDED
(
hr
))
hr
=
IEnumVARIANT_Skip
(
ev
,
start
);
if
(
SUCCEEDED
(
hr
))
hr
=
IEnumVARIANT_Next
(
ev
,
count
,
children
,
(
ULONG
*
)
children_cnt
);
IEnumVARIANT_Release
(
ev
);
return
hr
;
}
hr
=
IAccessible_get_accChildCount
(
container
,
&
child_no
);
if
(
FAILED
(
hr
))
return
hr
;
for
(
i
=
0
;
i
<
count
&&
start
+
i
+
1
<=
child_no
;
i
++
)
{
IDispatch
*
disp
;
V_VT
(
children
+
i
)
=
VT_I4
;
V_I4
(
children
+
i
)
=
start
+
i
+
1
;
hr
=
IAccessible_get_accChild
(
container
,
children
[
i
],
&
disp
);
if
(
SUCCEEDED
(
hr
)
&&
disp
)
{
V_VT
(
children
+
i
)
=
VT_DISPATCH
;
V_DISPATCH
(
children
+
i
)
=
disp
;
}
}
*
children_cnt
=
i
;
return
i
==
count
?
S_OK
:
S_FALSE
;
}
dlls/oleacc/oleacc.spec
View file @
88b5b6a5
@ st
ub AccessibleChildren
@ st
dcall AccessibleChildren(ptr long long ptr ptr)
@ stub AccessibleObjectFromEvent
@ stdcall AccessibleObjectFromPoint(int64 ptr ptr)
@ stdcall AccessibleObjectFromWindow(ptr long ptr ptr)
...
...
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