Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
2728909e
Commit
2728909e
authored
Aug 08, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
6c0fdc05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
1 deletion
+26
-1
treeview.c
dlls/comctl32/tests/treeview.c
+25
-0
commctrl.h
include/commctrl.h
+1
-1
No files found.
dlls/comctl32/tests/treeview.c
View file @
2728909e
...
...
@@ -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
))
{
...
...
include/commctrl.h
View file @
2728909e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment