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
30cdd592
Commit
30cdd592
authored
Mar 29, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 31, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Always forward HDM_SETORDERARRAY to a header.
parent
d12c2f8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
5 deletions
+22
-5
listview.c
dlls/comctl32/listview.c
+1
-5
listview.c
dlls/comctl32/tests/listview.c
+21
-0
No files found.
dlls/comctl32/listview.c
View file @
30cdd592
...
...
@@ -8307,12 +8307,8 @@ static BOOL LISTVIEW_SetColumnT(const LISTVIEW_INFO *infoPtr, INT nColumn,
*/
static
BOOL
LISTVIEW_SetColumnOrderArray
(
LISTVIEW_INFO
*
infoPtr
,
INT
iCount
,
const
INT
*
lpiArray
)
{
TRACE
(
"iCount %d lpiArray %p
\n
"
,
iCount
,
lpiArray
);
if
(
!
lpiArray
||
!
IsWindow
(
infoPtr
->
hwndHeader
))
return
FALSE
;
if
(
!
infoPtr
->
hwndHeader
)
return
FALSE
;
infoPtr
->
colRectsDirty
=
TRUE
;
return
SendMessageW
(
infoPtr
->
hwndHeader
,
HDM_SETORDERARRAY
,
iCount
,
(
LPARAM
)
lpiArray
);
}
...
...
dlls/comctl32/tests/listview.c
View file @
30cdd592
...
...
@@ -181,6 +181,14 @@ static const struct message listview_getorderarray_seq[] = {
{
0
}
};
static
const
struct
message
listview_setorderarray_seq
[]
=
{
{
LVM_SETCOLUMNORDERARRAY
,
sent
|
id
|
wparam
,
2
,
0
,
LISTVIEW_ID
},
{
HDM_SETORDERARRAY
,
sent
|
id
|
wparam
,
2
,
0
,
HEADER_ID
},
{
LVM_SETCOLUMNORDERARRAY
,
sent
|
id
|
wparam
,
0
,
0
,
LISTVIEW_ID
},
{
HDM_SETORDERARRAY
,
sent
|
id
|
wparam
,
0
,
0
,
HEADER_ID
},
{
0
}
};
static
const
struct
message
empty_seq
[]
=
{
{
0
}
};
...
...
@@ -1479,6 +1487,19 @@ static void test_columns(void)
ok_sequence
(
sequences
,
LISTVIEW_SEQ_INDEX
,
listview_getorderarray_seq
,
"get order array"
,
FALSE
);
/* LVM_SETCOLUMNORDERARRAY */
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
order
[
0
]
=
0
;
order
[
1
]
=
1
;
rc
=
SendMessageA
(
hwnd
,
LVM_SETCOLUMNORDERARRAY
,
2
,
(
LPARAM
)
&
order
);
expect
(
1
,
rc
);
rc
=
SendMessageA
(
hwnd
,
LVM_SETCOLUMNORDERARRAY
,
0
,
0
);
expect
(
0
,
rc
);
ok_sequence
(
sequences
,
LISTVIEW_SEQ_INDEX
,
listview_setorderarray_seq
,
"set order array"
,
FALSE
);
/* after column added subitem is considered as present */
insert_item
(
hwnd
,
0
);
...
...
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