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
af0f00b6
Commit
af0f00b6
authored
Jul 21, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: LVM_SETITEMSTATE - select all item case tests.
parent
7b683a90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
1 deletion
+55
-1
listview.c
dlls/comctl32/tests/listview.c
+55
-1
No files found.
dlls/comctl32/tests/listview.c
View file @
af0f00b6
...
...
@@ -205,6 +205,29 @@ static const struct message ownderdata_select_focus_parent_seq[] = {
{
0
}
};
static
const
struct
message
ownerdata_select_all_parent_seq
[]
=
{
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGED
},
{
0
}
};
static
const
struct
message
select_all_parent_seq
[]
=
{
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGING
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGED
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGING
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGED
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGING
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGED
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGING
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGED
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGING
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGED
},
{
0
}
};
static
const
struct
message
textcallback_set_again_parent_seq
[]
=
{
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGING
},
{
WM_NOTIFY
,
sent
|
id
,
0
,
0
,
LVN_ITEMCHANGED
},
...
...
@@ -1916,6 +1939,20 @@ static void test_multiselect(void)
}
item_count
=
(
int
)
SendMessage
(
hwnd
,
LVM_GETITEMCOUNT
,
0
,
0
);
expect
(
items
,
item_count
);
/* select all, check notifications */
ListView_SetItemState
(
hwnd
,
-
1
,
0
,
LVIS_SELECTED
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
item
.
stateMask
=
LVIS_SELECTED
;
item
.
state
=
LVIS_SELECTED
;
r
=
SendMessageA
(
hwnd
,
LVM_SETITEMSTATE
,
-
1
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
r
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
select_all_parent_seq
,
"select all notification"
,
FALSE
);
/* deselect all items */
ListView_SetItemState
(
hwnd
,
-
1
,
0
,
LVIS_SELECTED
);
SendMessage
(
hwnd
,
LVM_SETSELECTIONMARK
,
0
,
-
1
);
...
...
@@ -2385,7 +2422,7 @@ static void test_ownerdata(void)
/* check notifications after focused/selected changed */
hwnd
=
create_listview_control
(
LVS_OWNERDATA
);
ok
(
hwnd
!=
NULL
,
"failed to create a listview window
\n
"
);
res
=
SendMessageA
(
hwnd
,
LVM_SETITEMCOUNT
,
1
,
0
);
res
=
SendMessageA
(
hwnd
,
LVM_SETITEMCOUNT
,
20
,
0
);
ok
(
res
!=
0
,
"Expected LVM_SETITEMCOUNT to succeed
\n
"
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
...
...
@@ -2409,6 +2446,23 @@ static void test_ownerdata(void)
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
ownderdata_select_focus_parent_seq
,
"ownerdata focus notification"
,
TRUE
);
/* select all, check notifications */
item
.
stateMask
=
LVIS_SELECTED
;
item
.
state
=
0
;
res
=
SendMessageA
(
hwnd
,
LVM_SETITEMSTATE
,
-
1
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
res
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
item
.
stateMask
=
LVIS_SELECTED
;
item
.
state
=
LVIS_SELECTED
;
res
=
SendMessageA
(
hwnd
,
LVM_SETITEMSTATE
,
-
1
,
(
LPARAM
)
&
item
);
expect
(
TRUE
,
res
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
ownerdata_select_all_parent_seq
,
"ownerdata select all notification"
,
TRUE
);
DestroyWindow
(
hwnd
);
/* check notifications on LVM_GETITEM */
...
...
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