[PATCH 1/7] comctl32: Test the treeview edit control EM_LIMITTEXT.
Damjan Jovanovic
damjan.jov at gmail.com
Tue Nov 12 21:54:02 CST 2019
Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
---
dlls/comctl32/tests/treeview.c | 11 +++++++++++
1 file changed, 11 insertions(+)
-------------- next part --------------
diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c
index 56b6c6adbe..753c6b4327 100644
--- a/dlls/comctl32/tests/treeview.c
+++ b/dlls/comctl32/tests/treeview.c
@@ -1667,6 +1667,17 @@ static void test_itemedit(void)
GetWindowTextA(edit, buffA, ARRAY_SIZE(buffA));
ok(!strcmp(buffA, "<edittextaltered>"), "got string %s\n", buffA);
+ r = SendMessageA(hTree, WM_COMMAND, MAKEWPARAM(0, EN_KILLFOCUS), (LPARAM)edit);
+ expect(0, r);
+
+ /* How much text can be typed? */
+ edit = (HWND)SendMessageA(hTree, TVM_EDITLABELA, 0, (LPARAM)hRoot);
+ ok(IsWindow(edit), "Expected valid handle\n");
+ r = SendMessageA(edit, EM_GETLIMITTEXT, 0, 0);
+ todo_wine expect(MAX_PATH - 1, r);
+ r = SendMessageA(hTree, WM_COMMAND, MAKEWPARAM(0, EN_KILLFOCUS), (LPARAM)edit);
+ expect(0, r);
+
DestroyWindow(hTree);
}
More information about the wine-devel
mailing list