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
3845ed79
Commit
3845ed79
authored
Apr 24, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Tests for LVM_GETCOLUMNORDERARRAY: it actually uses HDM_GETORDERARRAY.
parent
3ae2e3a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
listview.c
dlls/comctl32/tests/listview.c
+33
-1
No files found.
dlls/comctl32/tests/listview.c
View file @
3845ed79
...
...
@@ -152,6 +152,12 @@ static const struct message listview_ownerdata_switchto_seq[] = {
{
0
}
};
static
const
struct
message
listview_getorderarray_seq
[]
=
{
{
LVM_GETCOLUMNORDERARRAY
,
sent
|
id
|
wparam
,
2
,
0
,
LISTVIEW_ID
},
{
HDM_GETORDERARRAY
,
sent
|
id
|
wparam
,
2
,
0
,
HEADER_ID
},
{
0
}
};
struct
subclass_info
{
WNDPROC
oldproc
;
...
...
@@ -800,9 +806,10 @@ static void test_items(void)
static
void
test_columns
(
void
)
{
HWND
hwnd
;
HWND
hwnd
,
hwndheader
;
LVCOLUMN
column
;
DWORD
rc
;
INT
order
[
2
];
hwnd
=
CreateWindowEx
(
0
,
"SysListView32"
,
"foo"
,
LVS_REPORT
,
10
,
10
,
100
,
200
,
hwndparent
,
NULL
,
NULL
,
NULL
);
...
...
@@ -821,6 +828,31 @@ static void test_columns(void)
"Inserting column with no mask failed to set width to 10 with %d
\n
"
,
rc
);
DestroyWindow
(
hwnd
);
/* LVM_GETCOLUMNORDERARRAY */
hwnd
=
create_listview_control
(
0
);
hwndheader
=
subclass_header
(
hwnd
);
memset
(
&
column
,
0
,
sizeof
(
column
));
column
.
mask
=
LVCF_WIDTH
;
column
.
cx
=
100
;
rc
=
ListView_InsertColumn
(
hwnd
,
0
,
&
column
);
ok
(
rc
==
0
,
"Inserting column failed with %d
\n
"
,
rc
);
column
.
cx
=
200
;
rc
=
ListView_InsertColumn
(
hwnd
,
1
,
&
column
);
ok
(
rc
==
1
,
"Inserting column failed with %d
\n
"
,
rc
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
rc
=
SendMessage
(
hwnd
,
LVM_GETCOLUMNORDERARRAY
,
2
,
(
LPARAM
)
&
order
);
ok
(
rc
!=
0
,
"Expected LVM_GETCOLUMNORDERARRAY to succeed
\n
"
);
ok
(
order
[
0
]
==
0
,
"Expected order 0, got %d
\n
"
,
order
[
0
]);
ok
(
order
[
1
]
==
1
,
"Expected order 1, got %d
\n
"
,
order
[
1
]);
ok_sequence
(
sequences
,
LISTVIEW_SEQ_INDEX
,
listview_getorderarray_seq
,
"get order array"
,
TRUE
);
DestroyWindow
(
hwnd
);
}
/* test setting imagelist between WM_NCCREATE and WM_CREATE */
static
WNDPROC
listviewWndProc
;
...
...
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