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
e95bb17b
Commit
e95bb17b
authored
Jun 29, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Jun 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Remove an assumption that causes test failures if default icon spacing is not 43x43.
parent
8d6dc9da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
listview.c
dlls/comctl32/tests/listview.c
+14
-9
No files found.
dlls/comctl32/tests/listview.c
View file @
e95bb17b
...
...
@@ -848,9 +848,9 @@ static void test_icon_spacing(void)
{
/* LVM_SETICONSPACING */
/* note: LVM_SETICONSPACING returns the previous icon spacing if successful */
/* note: the first test will fail if the default icon spacing is not (43,43) */
HWND
hwnd
;
WORD
w
,
h
;
DWORD
r
;
hwnd
=
create_custom_listview_control
(
LVS_ICON
);
...
...
@@ -859,17 +859,22 @@ static void test_icon_spacing(void)
r
=
SendMessage
(
hwnd
,
WM_NOTIFYFORMAT
,
(
WPARAM
)
hwndparent
,
(
LPARAM
)
NF_REQUERY
);
expect
(
NFR_ANSI
,
r
);
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
-
1
,
-
1
));
w
=
LOWORD
(
r
);
h
=
LOWORD
(
r
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
trace
(
"test icon spacing
\n
"
);
todo_wine
{
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
20
,
30
));
expect
(
MAKELONG
(
43
,
43
),
r
);
}
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
25
,
35
));
expect
(
MAKELONG
(
20
,
30
),
r
);
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
-
1
,
-
1
));
expect
(
MAKELONG
(
25
,
35
),
r
);
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
20
,
30
));
expect
(
MAKELONG
(
w
,
h
),
r
);
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
25
,
35
));
expect
(
MAKELONG
(
20
,
30
),
r
);
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
-
1
,
-
1
));
expect
(
MAKELONG
(
25
,
35
),
r
);
ok_sequence
(
sequences
,
LISTVIEW_SEQ_INDEX
,
listview_icon_spacing_seq
,
"test icon spacing seq"
,
FALSE
);
...
...
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