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
76c0d49b
Commit
76c0d49b
authored
Jul 07, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/listview: A basic test for column width default value.
parent
48995f33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
listview.c
dlls/comctl32/tests/listview.c
+26
-0
No files found.
dlls/comctl32/tests/listview.c
View file @
76c0d49b
...
...
@@ -3753,6 +3753,31 @@ todo_wine {
DestroyWindow
(
hwnd
);
}
static
void
test_getcolumnwidth
(
void
)
{
HWND
hwnd
;
DWORD
ret
;
DWORD_PTR
style
;
LVCOLUMNA
col
;
/* default column width */
hwnd
=
create_custom_listview_control
(
0
);
ret
=
SendMessage
(
hwnd
,
LVM_GETCOLUMNWIDTH
,
0
,
0
);
expect
(
0
,
ret
);
style
=
GetWindowLong
(
hwnd
,
GWL_STYLE
);
SetWindowLong
(
hwnd
,
GWL_STYLE
,
style
|
LVS_LIST
);
ret
=
SendMessage
(
hwnd
,
LVM_GETCOLUMNWIDTH
,
0
,
0
);
todo_wine
expect
(
8
,
ret
);
style
=
GetWindowLong
(
hwnd
,
GWL_STYLE
)
&
~
LVS_LIST
;
SetWindowLong
(
hwnd
,
GWL_STYLE
,
style
|
LVS_REPORT
);
col
.
mask
=
0
;
ret
=
SendMessage
(
hwnd
,
LVM_INSERTCOLUMNA
,
0
,
(
LPARAM
)
&
col
);
expect
(
0
,
ret
);
ret
=
SendMessage
(
hwnd
,
LVM_GETCOLUMNWIDTH
,
0
,
0
);
expect
(
10
,
ret
);
DestroyWindow
(
hwnd
);
}
START_TEST
(
listview
)
{
HMODULE
hComctl32
;
...
...
@@ -3807,6 +3832,7 @@ START_TEST(listview)
test_notifyformat
();
test_indentation
();
test_getitemspacing
();
test_getcolumnwidth
();
if
(
!
load_v6_module
(
&
ctx_cookie
))
{
...
...
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