Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8c4a3f9f
Commit
8c4a3f9f
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 client IEnumVARIANT::{Reset,Skip,Next} implementation.
parent
ee144b66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
6 deletions
+68
-6
client.c
dlls/oleacc/client.c
+68
-6
No files found.
dlls/oleacc/client.c
View file @
8c4a3f9f
...
...
@@ -33,6 +33,7 @@ typedef struct {
LONG
ref
;
HWND
hwnd
;
HWND
enum_pos
;
}
Client
;
static
inline
Client
*
impl_from_Client
(
IAccessible
*
iface
)
...
...
@@ -526,22 +527,82 @@ static HRESULT WINAPI Client_EnumVARIANT_Next(IEnumVARIANT *iface,
ULONG
celt
,
VARIANT
*
rgVar
,
ULONG
*
pCeltFetched
)
{
Client
*
This
=
impl_from_Client_EnumVARIANT
(
iface
);
FIXME
(
"(%p)->(%u %p %p)
\n
"
,
This
,
celt
,
rgVar
,
pCeltFetched
);
return
E_NOTIMPL
;
HWND
cur
=
This
->
enum_pos
,
next
;
ULONG
fetched
=
0
;
HRESULT
hr
;
TRACE
(
"(%p)->(%u %p %p)
\n
"
,
This
,
celt
,
rgVar
,
pCeltFetched
);
if
(
!
celt
)
{
if
(
pCeltFetched
)
*
pCeltFetched
=
0
;
return
S_OK
;
}
if
(
!
This
->
enum_pos
)
next
=
GetWindow
(
This
->
hwnd
,
GW_CHILD
);
else
next
=
GetWindow
(
This
->
enum_pos
,
GW_HWNDNEXT
);
while
(
next
)
{
cur
=
next
;
V_VT
(
rgVar
+
fetched
)
=
VT_DISPATCH
;
hr
=
AccessibleObjectFromWindow
(
cur
,
OBJID_WINDOW
,
&
IID_IDispatch
,
(
void
**
)
&
V_DISPATCH
(
rgVar
+
fetched
));
if
(
FAILED
(
hr
))
{
V_VT
(
rgVar
+
fetched
)
=
VT_EMPTY
;
while
(
fetched
>
0
)
{
VariantClear
(
rgVar
+
fetched
-
1
);
fetched
--
;
}
if
(
pCeltFetched
)
*
pCeltFetched
=
0
;
return
hr
;
}
fetched
++
;
if
(
fetched
==
celt
)
break
;
next
=
GetWindow
(
cur
,
GW_HWNDNEXT
);
}
This
->
enum_pos
=
cur
;
if
(
pCeltFetched
)
*
pCeltFetched
=
fetched
;
return
celt
==
fetched
?
S_OK
:
S_FALSE
;
}
static
HRESULT
WINAPI
Client_EnumVARIANT_Skip
(
IEnumVARIANT
*
iface
,
ULONG
celt
)
{
Client
*
This
=
impl_from_Client_EnumVARIANT
(
iface
);
FIXME
(
"(%p)->(%u)
\n
"
,
This
,
celt
);
return
E_NOTIMPL
;
HWND
next
;
TRACE
(
"(%p)->(%u)
\n
"
,
This
,
celt
);
while
(
celt
)
{
if
(
!
This
->
enum_pos
)
next
=
GetWindow
(
This
->
hwnd
,
GW_CHILD
);
else
next
=
GetWindow
(
This
->
enum_pos
,
GW_HWNDNEXT
);
if
(
!
next
)
return
S_FALSE
;
This
->
enum_pos
=
next
;
celt
--
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
Client_EnumVARIANT_Reset
(
IEnumVARIANT
*
iface
)
{
Client
*
This
=
impl_from_Client_EnumVARIANT
(
iface
);
FIXME
(
"(%p)
\n
"
,
This
);
return
E_NOTIMPL
;
TRACE
(
"(%p)
\n
"
,
This
);
This
->
enum_pos
=
0
;
return
S_OK
;
}
static
HRESULT
WINAPI
Client_EnumVARIANT_Clone
(
IEnumVARIANT
*
iface
,
IEnumVARIANT
**
ppEnum
)
...
...
@@ -578,6 +639,7 @@ HRESULT create_client_object(HWND hwnd, const IID *iid, void **obj)
client
->
IEnumVARIANT_iface
.
lpVtbl
=
&
ClientEnumVARIANTVtbl
;
client
->
ref
=
1
;
client
->
hwnd
=
hwnd
;
client
->
enum_pos
=
0
;
hres
=
IAccessible_QueryInterface
(
&
client
->
IAccessible_iface
,
iid
,
obj
);
IAccessible_Release
(
&
client
->
IAccessible_iface
);
...
...
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