Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c4708bca
Commit
c4708bca
authored
Oct 31, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add more TVS_CHECKBOXES flag tests.
parent
7b1ff882
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
6 deletions
+51
-6
treeview.c
dlls/comctl32/tests/treeview.c
+51
-6
No files found.
dlls/comctl32/tests/treeview.c
View file @
c4708bca
...
@@ -1842,12 +1842,6 @@ static void test_TVS_CHECKBOXES(void)
...
@@ -1842,12 +1842,6 @@ static void test_TVS_CHECKBOXES(void)
DestroyWindow
(
hTree
);
DestroyWindow
(
hTree
);
/* the same, but initially created with TVS_CHECKBOXES */
/* the same, but initially created with TVS_CHECKBOXES */
hTree
=
create_treeview_control
(
0
);
fill_tree
(
hTree
);
himl
=
(
HIMAGELIST
)
SendMessageA
(
hTree
,
TVM_GETIMAGELIST
,
TVSIL_STATE
,
0
);
ok
(
himl
==
NULL
,
"got %p
\n
"
,
himl
);
DestroyWindow
(
hTree
);
hTree
=
create_treeview_control
(
TVS_CHECKBOXES
);
hTree
=
create_treeview_control
(
TVS_CHECKBOXES
);
fill_tree
(
hTree
);
fill_tree
(
hTree
);
himl
=
(
HIMAGELIST
)
SendMessageA
(
hTree
,
TVM_GETIMAGELIST
,
TVSIL_STATE
,
0
);
himl
=
(
HIMAGELIST
)
SendMessageA
(
hTree
,
TVM_GETIMAGELIST
,
TVSIL_STATE
,
0
);
...
@@ -1903,6 +1897,57 @@ static void test_TVS_CHECKBOXES(void)
...
@@ -1903,6 +1897,57 @@ static void test_TVS_CHECKBOXES(void)
ok
(
himl
!=
NULL
,
"got %p
\n
"
,
himl
);
ok
(
himl
!=
NULL
,
"got %p
\n
"
,
himl
);
DestroyWindow
(
hTree
);
DestroyWindow
(
hTree
);
/* check what happens if TVSIL_STATE image list is removed */
hTree
=
create_treeview_control
(
0
);
fill_tree
(
hTree
);
himl
=
(
HIMAGELIST
)
SendMessageA
(
hTree
,
TVM_GETIMAGELIST
,
TVSIL_STATE
,
0
);
ok
(
himl
==
NULL
,
"got %p
\n
"
,
himl
);
SetWindowLongA
(
hTree
,
GWL_STYLE
,
GetWindowLongA
(
hTree
,
GWL_STYLE
)
|
TVS_CHECKBOXES
);
himl
=
(
HIMAGELIST
)
SendMessageA
(
hTree
,
TVM_GETIMAGELIST
,
TVSIL_STATE
,
0
);
ok
(
himl
!=
NULL
,
"got %p
\n
"
,
himl
);
himl2
=
(
HIMAGELIST
)
SendMessageA
(
hTree
,
TVM_SETIMAGELIST
,
TVSIL_STATE
,
0
);
ok
(
himl2
==
himl
,
"got %p
\n
"
,
himl2
);
himl2
=
(
HIMAGELIST
)
SendMessageA
(
hTree
,
TVM_GETIMAGELIST
,
TVSIL_STATE
,
0
);
ok
(
himl2
==
NULL
,
"got %p
\n
"
,
himl2
);
item
.
hItem
=
hChild
;
item
.
mask
=
TVIF_STATE
;
item
.
state
=
INDEXTOSTATEIMAGEMASK
(
2
);
item
.
stateMask
=
TVIS_STATEIMAGEMASK
;
ret
=
SendMessageA
(
hTree
,
TVM_SETITEMA
,
0
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
ret
);
item
.
hItem
=
hChild
;
item
.
mask
=
TVIF_STATE
;
item
.
state
=
0
;
ret
=
SendMessageA
(
hTree
,
TVM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
ret
);
ok
(
item
.
state
==
INDEXTOSTATEIMAGEMASK
(
2
),
"got 0x%x
\n
"
,
item
.
state
);
while
(
GetMessageA
(
&
msg
,
0
,
0
,
0
))
{
TranslateMessage
(
&
msg
);
DispatchMessageA
(
&
msg
);
if
((
msg
.
hwnd
==
hTree
)
&&
(
msg
.
message
==
WM_PAINT
))
break
;
}
item
.
hItem
=
hChild
;
item
.
mask
=
TVIF_STATE
;
item
.
state
=
0
;
ret
=
SendMessageA
(
hTree
,
TVM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
ret
);
ok
(
item
.
state
==
INDEXTOSTATEIMAGEMASK
(
1
),
"got 0x%x
\n
"
,
item
.
state
);
himl
=
(
HIMAGELIST
)
SendMessageA
(
hTree
,
TVM_GETIMAGELIST
,
TVSIL_STATE
,
0
);
ok
(
himl
!=
NULL
,
"got %p
\n
"
,
himl
);
DestroyWindow
(
hTree
);
}
}
static
void
test_TVM_GETNEXTITEM
(
void
)
static
void
test_TVM_GETNEXTITEM
(
void
)
...
...
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