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
c96900b9
Commit
c96900b9
authored
Aug 04, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Enable column reordering.
parent
8c6d9105
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
listview.c
dlls/comctl32/listview.c
+9
-9
listview.c
dlls/comctl32/tests/listview.c
+2
-2
No files found.
dlls/comctl32/listview.c
View file @
c96900b9
...
...
@@ -52,7 +52,6 @@
* -- Support CustomDraw options for _WIN32_IE >= 0x560 (see NMLVCUSTOMDRAW docs).
* -- LVA_SNAPTOGRID not implemented
* -- LISTVIEW_ApproximateViewRect partially implemented
* -- LISTVIEW_[GS]etColumnOrderArray stubs
* -- LISTVIEW_SetColumnWidth ignores header images & bitmap
* -- LISTVIEW_SetIconSpacing is incomplete
* -- LISTVIEW_StyleChanged doesn't handle some changes too well
...
...
@@ -7556,16 +7555,16 @@ static BOOL LISTVIEW_SetColumnT(const LISTVIEW_INFO *infoPtr, INT nColumn,
* SUCCESS : TRUE
* FAILURE : FALSE
*/
static
BOOL
LISTVIEW_SetColumnOrderArray
(
const
LISTVIEW_INFO
*
infoPtr
,
INT
iCount
,
const
INT
*
lpiArray
)
static
BOOL
LISTVIEW_SetColumnOrderArray
(
LISTVIEW_INFO
*
infoPtr
,
INT
iCount
,
const
INT
*
lpiArray
)
{
FIXM
E
(
"iCount %d lpiArray %p
\n
"
,
iCount
,
lpiArray
);
TRAC
E
(
"iCount %d lpiArray %p
\n
"
,
iCount
,
lpiArray
);
if
(
!
lpiArray
)
return
FALSE
;
if
(
!
lpiArray
||
!
IsWindow
(
infoPtr
->
hwndHeader
))
return
FALSE
;
return
TRUE
;
}
infoPtr
->
colRectsDirty
=
TRUE
;
return
SendMessageW
(
infoPtr
->
hwndHeader
,
HDM_SETORDERARRAY
,
iCount
,
(
LPARAM
)
lpiArray
);
}
/***
* DESCRIPTION:
...
...
@@ -9541,9 +9540,10 @@ static LRESULT LISTVIEW_HeaderNotification(LISTVIEW_INFO *infoPtr, const NMHEADE
return
(
infoPtr
->
dwLvExStyle
&
LVS_EX_HEADERDRAGDROP
)
==
0
;
case
HDN_ENDDRAG
:
FIXME
(
"Changing column order not implemented
\n
"
);
infoPtr
->
colRectsDirty
=
TRUE
;
LISTVIEW_InvalidateList
(
infoPtr
);
notify_forward_header
(
infoPtr
,
lpnmh
);
return
TRU
E
;
return
FALS
E
;
case
HDN_ITEMCHANGINGW
:
case
HDN_ITEMCHANGINGA
:
...
...
dlls/comctl32/tests/listview.c
View file @
c96900b9
...
...
@@ -3159,7 +3159,7 @@ static void test_getitemrect(void)
r
=
SendMessage
(
hwnd
,
LVM_GETITEMPOSITION
,
0
,
(
LPARAM
)
&
pt
);
expect
(
TRUE
,
r
);
/* 1 indexed column width + padding */
todo_wine
expect
(
102
,
pt
.
x
);
expect
(
102
,
pt
.
x
);
/* rect is at zero too */
rect
.
left
=
LVIR_BOUNDS
;
rect
.
right
=
rect
.
top
=
rect
.
bottom
=
-
1
;
...
...
@@ -3174,7 +3174,7 @@ static void test_getitemrect(void)
r
=
SendMessage
(
hwnd
,
LVM_GETITEMRECT
,
0
,
(
LPARAM
)
&
rect
);
expect
(
TRUE
,
r
);
/* column width + padding */
todo_wine
expect
(
102
,
rect
.
left
);
expect
(
102
,
rect
.
left
);
/* back to initial order */
order
[
0
]
=
0
;
order
[
1
]
=
1
;
...
...
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