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
f9b14fda
Commit
f9b14fda
authored
May 14, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/treeview: Store item state supplied from TVN_GETDISPINFO handler.
parent
1fa1c72d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
treeview.c
dlls/comctl32/tests/treeview.c
+2
-1
treeview.c
dlls/comctl32/treeview.c
+6
-0
No files found.
dlls/comctl32/tests/treeview.c
View file @
f9b14fda
...
...
@@ -468,10 +468,11 @@ static void test_callback(void)
tvi
.
hItem
=
hRoot
;
tvi
.
mask
=
TVIF_IMAGE
;
tvi
.
state
=
INDEXTOSTATEIMAGEMASK
(
1
);
tvi
.
stateMask
=
0
;
ret
=
TreeView_GetItem
(
hTree
,
&
tvi
);
expect
(
TRUE
,
ret
);
/* handler sets TVIS_SELECTED as well */
todo_wine
ok
(
tvi
.
state
==
(
TVIS_FOCUSED
|
TVIS_SELECTED
|
INDEXTOSTATEIMAGEMASK
(
2
)
|
INDEXTOOVERLAYMASK
(
3
)),
"got 0x%x
\n
"
,
tvi
.
state
);
ok
(
tvi
.
state
==
(
TVIS_FOCUSED
|
TVIS_SELECTED
|
INDEXTOSTATEIMAGEMASK
(
2
)
|
INDEXTOOVERLAYMASK
(
3
)),
"got 0x%x
\n
"
,
tvi
.
state
);
g_disp_set_stateimage
=
FALSE
;
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
parent_get_dispinfo_seq
,
...
...
dlls/comctl32/treeview.c
View file @
f9b14fda
...
...
@@ -815,6 +815,12 @@ TREEVIEW_UpdateDispInfo(const TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM *wineItem,
if
(
mask
&
TVIF_CHILDREN
)
wineItem
->
cChildren
=
callback
.
item
.
cChildren
;
if
(
callback
.
item
.
mask
&
TVIF_STATE
)
{
wineItem
->
state
&=
~
callback
.
item
.
stateMask
;
wineItem
->
state
|=
(
callback
.
item
.
state
&
callback
.
item
.
stateMask
);
}
/* These members are now permanently set. */
if
(
callback
.
item
.
mask
&
TVIF_DI_SETITEM
)
wineItem
->
callbackMask
&=
~
callback
.
item
.
mask
;
...
...
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