Nikolay Sivov : comctl32: Test WM_GETDLGCODE return value for TreeView.

Alexandre Julliard julliard at winehq.org
Wed Jan 30 13:43:22 CST 2013


Module: wine
Branch: master
Commit: 8418ae533440bba49a537cca79b3c92cbf76b96a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8418ae533440bba49a537cca79b3c92cbf76b96a

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Jan 29 11:23:53 2013 +0400

comctl32: Test WM_GETDLGCODE return value for TreeView.

---

 dlls/comctl32/tests/treeview.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c
index 4a7c60c..3c437de 100644
--- a/dlls/comctl32/tests/treeview.c
+++ b/dlls/comctl32/tests/treeview.c
@@ -1950,6 +1950,19 @@ static void test_TVM_HITTEST(void)
     DestroyWindow(hTree);
 }
 
+static void test_WM_GETDLGCODE(void)
+{
+    DWORD code;
+    HWND hTree;
+
+    hTree = create_treeview_control(0);
+
+    code = SendMessageA(hTree, WM_GETDLGCODE, VK_TAB, 0);
+    ok(code == (DLGC_WANTCHARS | DLGC_WANTARROWS), "0x%08x\n", code);
+
+    DestroyWindow(hTree);
+}
+
 START_TEST(treeview)
 {
     HMODULE hComctl32;
@@ -2023,6 +2036,7 @@ START_TEST(treeview)
     test_TVS_CHECKBOXES();
     test_TVM_GETNEXTITEM();
     test_TVM_HITTEST();
+    test_WM_GETDLGCODE();
 
     if (!load_v6_module(&ctx_cookie, &hCtx))
     {
@@ -2048,6 +2062,7 @@ START_TEST(treeview)
     /* comctl32 version 6 tests start here */
     test_expandedimage();
     test_htreeitem_layout();
+    test_WM_GETDLGCODE();
 
     unload_v6_module(ctx_cookie, hCtx);
 




More information about the wine-cvs mailing list