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
778c04db
Commit
778c04db
authored
Mar 19, 2008
by
Lei Zhang
Committed by
Alexandre Julliard
Mar 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Add listview checkbox toggle test.
parent
69b032b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
listview.c
dlls/comctl32/tests/listview.c
+38
-0
No files found.
dlls/comctl32/tests/listview.c
View file @
778c04db
...
...
@@ -539,6 +539,44 @@ static void test_checkboxes(void)
r
=
SendMessage
(
hwnd
,
LVM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
ok
(
item
.
state
==
0x1aaa
,
"state %x
\n
"
,
item
.
state
);
/* Toggle checkbox tests (bug 9934) */
memset
(
&
item
,
0xcc
,
sizeof
(
item
));
item
.
mask
=
LVIF_STATE
;
item
.
iItem
=
3
;
item
.
iSubItem
=
0
;
item
.
state
=
LVIS_FOCUSED
;
item
.
stateMask
=
LVIS_FOCUSED
;
r
=
SendMessage
(
hwnd
,
LVM_SETITEM
,
0
,
(
LPARAM
)
&
item
);
expect
(
1
,
r
);
item
.
iItem
=
3
;
item
.
mask
=
LVIF_STATE
;
item
.
stateMask
=
0xffff
;
r
=
SendMessage
(
hwnd
,
LVM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
ok
(
item
.
state
==
0x1aab
,
"state %x
\n
"
,
item
.
state
);
r
=
SendMessage
(
hwnd
,
WM_KEYDOWN
,
VK_SPACE
,
0
);
expect
(
0
,
r
);
r
=
SendMessage
(
hwnd
,
WM_KEYUP
,
VK_SPACE
,
0
);
expect
(
0
,
r
);
item
.
iItem
=
3
;
item
.
mask
=
LVIF_STATE
;
item
.
stateMask
=
0xffff
;
r
=
SendMessage
(
hwnd
,
LVM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
todo_wine
ok
(
item
.
state
==
0x2aab
,
"state %x
\n
"
,
item
.
state
);
r
=
SendMessage
(
hwnd
,
WM_KEYDOWN
,
VK_SPACE
,
0
);
expect
(
0
,
r
);
r
=
SendMessage
(
hwnd
,
WM_KEYUP
,
VK_SPACE
,
0
);
expect
(
0
,
r
);
item
.
iItem
=
3
;
item
.
mask
=
LVIF_STATE
;
item
.
stateMask
=
0xffff
;
r
=
SendMessage
(
hwnd
,
LVM_GETITEMA
,
0
,
(
LPARAM
)
&
item
);
ok
(
item
.
state
==
0x1aab
,
"state %x
\n
"
,
item
.
state
);
DestroyWindow
(
hwnd
);
}
...
...
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