comctl32/tests: Basic test for TVS_FULLROWSELECT style bit.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6c0fdc0516
commit
2728909e6c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue