Commit 2728909e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/tests: Basic test for TVS_FULLROWSELECT style bit.

parent 6c0fdc05
......@@ -2369,6 +2369,30 @@ static void test_WM_KEYDOWN(void)
DestroyWindow(hwnd);
}
static void test_TVS_FULLROWSELECT(void)
{
DWORD style;
HWND hwnd;
/* try to create both with TVS_HASLINES and TVS_FULLROWSELECT */
hwnd = create_treeview_control(TVS_FULLROWSELECT);
style = GetWindowLongA(hwnd, GWL_STYLE);
ok((style & (TVS_FULLROWSELECT | TVS_HASLINES)) == (TVS_FULLROWSELECT | TVS_HASLINES), "got style 0x%08x\n", style);
DestroyWindow(hwnd);
/* create just with TVS_HASLINES, try to enable TVS_FULLROWSELECT later */
hwnd = create_treeview_control(0);
style = GetWindowLongA(hwnd, GWL_STYLE);
SetWindowLongA(hwnd, GWL_STYLE, style | TVS_FULLROWSELECT);
style = GetWindowLongA(hwnd, GWL_STYLE);
ok(style & TVS_FULLROWSELECT, "got style 0x%08x\n", style);
DestroyWindow(hwnd);
}
START_TEST(treeview)
{
HMODULE hComctl32;
......@@ -2444,6 +2468,7 @@ START_TEST(treeview)
test_WM_GETDLGCODE();
test_customdraw();
test_WM_KEYDOWN();
test_TVS_FULLROWSELECT();
if (!load_v6_module(&ctx_cookie, &hCtx))
{
......
......@@ -2400,7 +2400,7 @@ static const WCHAR WC_TREEVIEWW[] = { 'S','y','s',
#define TVHT_ONITEMBUTTON 0x0010
#define TVHT_ONITEMRIGHT 0x0020
#define TVHT_ONITEMSTATEICON 0x0040
#define TVHT_ONITEM 0x0046
#define TVHT_ONITEM (TVHT_ONITEMICON | TVHT_ONITEMLABEL | TVHT_ONITEMSTATEICON)
#define TVHT_ABOVE 0x0100
#define TVHT_BELOW 0x0200
#define TVHT_TORIGHT 0x0400
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment