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
ad49634b
Commit
ad49634b
authored
May 17, 2015
by
Alex Henrie
Committed by
Alexandre Julliard
May 18, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Send WM_NOTIFY when expanding ancestors of the new selection.
parent
36297f2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
treeview.c
dlls/comctl32/tests/treeview.c
+10
-11
treeview.c
dlls/comctl32/treeview.c
+1
-1
No files found.
dlls/comctl32/tests/treeview.c
View file @
ad49634b
...
@@ -1761,19 +1761,18 @@ static void test_TVS_SINGLEEXPAND(void)
...
@@ -1761,19 +1761,18 @@ static void test_TVS_SINGLEEXPAND(void)
{
{
HTREEITEM
*
select
;
HTREEITEM
*
select
;
const
struct
message
*
sequence
;
const
struct
message
*
sequence
;
BOOL
todo
;
}
}
sequence_tests
[]
=
sequence_tests
[]
=
{
{
{
&
alpha
,
parent_singleexpand_seq0
,
FALSE
},
{
&
alpha
,
parent_singleexpand_seq0
},
{
&
bravo
,
parent_singleexpand_seq1
,
FALSE
},
{
&
bravo
,
parent_singleexpand_seq1
},
{
&
delta
,
parent_singleexpand_seq2
,
FALSE
},
{
&
delta
,
parent_singleexpand_seq2
},
{
&
foxtrot
,
parent_singleexpand_seq3
,
FALSE
},
{
&
foxtrot
,
parent_singleexpand_seq3
},
{
&
alpha
,
parent_singleexpand_seq4
,
FALSE
},
{
&
alpha
,
parent_singleexpand_seq4
},
{
&
golf
,
parent_singleexpand_seq5
,
TRUE
},
{
&
golf
,
parent_singleexpand_seq5
},
{
&
hotel
,
parent_singleexpand_seq6
,
FALSE
},
{
&
hotel
,
parent_singleexpand_seq6
},
{
&
india
,
parent_singleexpand_seq7
,
FALSE
},
{
&
india
,
parent_singleexpand_seq7
},
{
&
india
,
empty_seq
,
FALSE
}
{
&
india
,
empty_seq
}
};
};
hTree
=
create_treeview_control
(
0
);
hTree
=
create_treeview_control
(
0
);
...
@@ -1795,7 +1794,7 @@ static void test_TVS_SINGLEEXPAND(void)
...
@@ -1795,7 +1794,7 @@ static void test_TVS_SINGLEEXPAND(void)
ret
=
SendMessageA
(
hTree
,
TVM_SELECTITEM
,
TVGN_CARET
,
(
LPARAM
)(
*
sequence_tests
[
i
].
select
));
ret
=
SendMessageA
(
hTree
,
TVM_SELECTITEM
,
TVGN_CARET
,
(
LPARAM
)(
*
sequence_tests
[
i
].
select
));
ok
(
ret
,
"got %d
\n
"
,
ret
);
ok
(
ret
,
"got %d
\n
"
,
ret
);
sprintf
(
context
,
"singleexpand notifications %d"
,
i
);
sprintf
(
context
,
"singleexpand notifications %d"
,
i
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
sequence_tests
[
i
].
sequence
,
context
,
sequence_tests
[
i
].
todo
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
sequence_tests
[
i
].
sequence
,
context
,
FALSE
);
}
}
for
(
i
=
0
;
i
<
sizeof
(
items
)
/
sizeof
(
items
[
0
]);
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
items
)
/
sizeof
(
items
[
0
]);
i
++
)
...
...
dlls/comctl32/treeview.c
View file @
ad49634b
...
@@ -4663,7 +4663,7 @@ TREEVIEW_EnsureVisible(TREEVIEW_INFO *infoPtr, HTREEITEM item, BOOL bHScroll)
...
@@ -4663,7 +4663,7 @@ TREEVIEW_EnsureVisible(TREEVIEW_INFO *infoPtr, HTREEITEM item, BOOL bHScroll)
while
(
parent
!=
infoPtr
->
root
)
while
(
parent
!=
infoPtr
->
root
)
{
{
if
(
!
(
parent
->
state
&
TVIS_EXPANDED
))
if
(
!
(
parent
->
state
&
TVIS_EXPANDED
))
TREEVIEW_Expand
(
infoPtr
,
parent
,
FALSE
,
FALS
E
);
TREEVIEW_Expand
(
infoPtr
,
parent
,
FALSE
,
TRU
E
);
parent
=
parent
->
parent
;
parent
=
parent
->
parent
;
}
}
...
...
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