Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3e4ba304
Commit
3e4ba304
authored
Jun 03, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: Some tests for LVS_SORT[A,DE]SCENDING, remove these styles from TODOs.
parent
eb203a14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
listview.c
dlls/comctl32/listview.c
+0
-1
listview.c
dlls/comctl32/tests/listview.c
+29
-0
No files found.
dlls/comctl32/listview.c
View file @
3e4ba304
...
...
@@ -80,7 +80,6 @@
* Styles
* -- LVS_NOLABELWRAP
* -- LVS_NOSCROLL (see Q137520)
* -- LVS_SORTASCENDING, LVS_SORTDESCENDING
* -- LVS_ALIGNTOP
* -- LVS_TYPESTYLEMASK
*
...
...
dlls/comctl32/tests/listview.c
View file @
3e4ba304
...
...
@@ -2226,6 +2226,35 @@ static void test_ownerdata(void)
"ownerdata getitem selected state 2"
,
FALSE
);
DestroyWindow
(
hwnd
);
/* LVS_SORTASCENDING/LVS_SORTDESCENDING aren't compatible with LVS_OWNERDATA */
hwnd
=
create_listview_control
(
LVS_OWNERDATA
|
LVS_SORTASCENDING
);
ok
(
hwnd
!=
NULL
,
"failed to create a listview window
\n
"
);
style
=
GetWindowLongPtrA
(
hwnd
,
GWL_STYLE
);
ok
(
style
&
LVS_OWNERDATA
,
"Expected LVS_OWNERDATA
\n
"
);
ok
(
style
&
LVS_SORTASCENDING
,
"Expected LVS_SORTASCENDING to be set
\n
"
);
SetWindowLongPtrA
(
hwnd
,
GWL_STYLE
,
style
&
~
LVS_SORTASCENDING
);
style
=
GetWindowLongPtrA
(
hwnd
,
GWL_STYLE
);
ok
(
!
(
style
&
LVS_SORTASCENDING
),
"Expected LVS_SORTASCENDING not set
\n
"
);
DestroyWindow
(
hwnd
);
/* apparently it's allowed to switch these style on after creation */
hwnd
=
create_listview_control
(
LVS_OWNERDATA
);
ok
(
hwnd
!=
NULL
,
"failed to create a listview window
\n
"
);
style
=
GetWindowLongPtrA
(
hwnd
,
GWL_STYLE
);
ok
(
style
&
LVS_OWNERDATA
,
"Expected LVS_OWNERDATA
\n
"
);
SetWindowLongPtrA
(
hwnd
,
GWL_STYLE
,
style
|
LVS_SORTASCENDING
);
style
=
GetWindowLongPtrA
(
hwnd
,
GWL_STYLE
);
ok
(
style
&
LVS_SORTASCENDING
,
"Expected LVS_SORTASCENDING to be set
\n
"
);
DestroyWindow
(
hwnd
);
hwnd
=
create_listview_control
(
LVS_OWNERDATA
);
ok
(
hwnd
!=
NULL
,
"failed to create a listview window
\n
"
);
style
=
GetWindowLongPtrA
(
hwnd
,
GWL_STYLE
);
ok
(
style
&
LVS_OWNERDATA
,
"Expected LVS_OWNERDATA
\n
"
);
SetWindowLongPtrA
(
hwnd
,
GWL_STYLE
,
style
|
LVS_SORTDESCENDING
);
style
=
GetWindowLongPtrA
(
hwnd
,
GWL_STYLE
);
ok
(
style
&
LVS_SORTDESCENDING
,
"Expected LVS_SORTDESCENDING to be set
\n
"
);
DestroyWindow
(
hwnd
);
}
static
void
test_norecompute
(
void
)
...
...
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