comctl32: Test WM_GETDLGCODE return value for TreeView.

This commit is contained in:
Nikolay Sivov 2013-01-29 11:23:53 +04:00 committed by Alexandre Julliard
parent ac4192e769
commit 8418ae5334
1 changed files with 15 additions and 0 deletions

View File

@ -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);