[PATCH 4/4] comctl32: Send WM_NOTIFY when expanding ancestors of the new selection.
Alex Henrie
alexhenrie24 at gmail.com
Mon May 18 00:36:27 CDT 2015
---
dlls/comctl32/tests/treeview.c | 21 ++++++++++-----------
dlls/comctl32/treeview.c | 2 +-
2 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c
index ab2d8bb..5003dfa 100644
--- a/dlls/comctl32/tests/treeview.c
+++ b/dlls/comctl32/tests/treeview.c
@@ -1761,19 +1761,18 @@ static void test_TVS_SINGLEEXPAND(void)
{
HTREEITEM *select;
const struct message *sequence;
- BOOL todo;
}
sequence_tests[] =
{
- { &alpha, parent_singleexpand_seq0, FALSE },
- { &bravo, parent_singleexpand_seq1, FALSE },
- { &delta, parent_singleexpand_seq2, FALSE },
- { &foxtrot, parent_singleexpand_seq3, FALSE },
- { &alpha, parent_singleexpand_seq4, FALSE },
- { &golf, parent_singleexpand_seq5, TRUE },
- { &hotel, parent_singleexpand_seq6, FALSE },
- { &india, parent_singleexpand_seq7, FALSE },
- { &india, empty_seq, FALSE }
+ { &alpha, parent_singleexpand_seq0 },
+ { &bravo, parent_singleexpand_seq1 },
+ { &delta, parent_singleexpand_seq2 },
+ { &foxtrot, parent_singleexpand_seq3 },
+ { &alpha, parent_singleexpand_seq4 },
+ { &golf, parent_singleexpand_seq5 },
+ { &hotel, parent_singleexpand_seq6 },
+ { &india, parent_singleexpand_seq7 },
+ { &india, empty_seq }
};
hTree = create_treeview_control(0);
@@ -1795,7 +1794,7 @@ static void test_TVS_SINGLEEXPAND(void)
ret = SendMessageA(hTree, TVM_SELECTITEM, TVGN_CARET, (LPARAM)(*sequence_tests[i].select));
ok(ret, "got %d\n", ret);
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++)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index 0a3df83..812bd35 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -4663,7 +4663,7 @@ TREEVIEW_EnsureVisible(TREEVIEW_INFO *infoPtr, HTREEITEM item, BOOL bHScroll)
while (parent != infoPtr->root)
{
if (!(parent->state & TVIS_EXPANDED))
- TREEVIEW_Expand(infoPtr, parent, FALSE, FALSE);
+ TREEVIEW_Expand(infoPtr, parent, FALSE, TRUE);
parent = parent->parent;
}
--
2.4.1
More information about the wine-patches
mailing list