Damjan Jovanovic : comctl32: Test the treeview edit control EM_LIMITTEXT.

Alexandre Julliard julliard at winehq.org
Mon Apr 20 15:01:49 CDT 2020


Module: wine
Branch: oldstable
Commit: 13f43c319d36915c3d53146202197349726deb8f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=13f43c319d36915c3d53146202197349726deb8f

Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date:   Wed Nov 13 05:54:02 2019 +0200

comctl32: Test the treeview edit control EM_LIMITTEXT.

Signed-off-by: Damjan Jovanovic <damjan.jov at gmail.com>
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 6fb210d7b4fed68aed31fda16a9b395c58794720)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/comctl32/tests/treeview.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c
index 8ba7f543de..3d4d51a5b2 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-cvs mailing list