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
06c4de04
Commit
06c4de04
authored
Nov 03, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Use MAKELPARAM instead of "(LPARAM) MAKELONG".
parent
1cca99dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
listview.c
dlls/comctl32/tests/listview.c
+8
-8
tooltips.c
dlls/comctl32/tests/tooltips.c
+1
-1
No files found.
dlls/comctl32/tests/listview.c
View file @
06c4de04
...
...
@@ -78,9 +78,9 @@ static const struct message redraw_listview_seq[] = {
};
static
const
struct
message
listview_icon_spacing_seq
[]
=
{
{
LVM_SETICONSPACING
,
sent
|
lparam
,
0
,
(
LPARAM
)
MAKELONG
(
20
,
30
)
},
{
LVM_SETICONSPACING
,
sent
|
lparam
,
0
,
(
LPARAM
)
MAKELONG
(
25
,
35
)
},
{
LVM_SETICONSPACING
,
sent
|
lparam
,
0
,
(
LPARAM
)
MAKELONG
(
-
1
,
-
1
)
},
{
LVM_SETICONSPACING
,
sent
|
lparam
,
0
,
MAKELPARAM
(
20
,
30
)
},
{
LVM_SETICONSPACING
,
sent
|
lparam
,
0
,
MAKELPARAM
(
25
,
35
)
},
{
LVM_SETICONSPACING
,
sent
|
lparam
,
0
,
MAKELPARAM
(
-
1
,
-
1
)
},
{
0
}
};
...
...
@@ -866,10 +866,10 @@ static void test_icon_spacing(void)
expect
(
NFR_ANSI
,
r
);
/* reset the icon spacing to defaults */
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
-
1
,
-
1
));
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
MAKELPARAM
(
-
1
,
-
1
));
/* now we can request what the defaults are */
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
-
1
,
-
1
));
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
MAKELPARAM
(
-
1
,
-
1
));
w
=
LOWORD
(
r
);
h
=
HIWORD
(
r
);
...
...
@@ -877,15 +877,15 @@ static void test_icon_spacing(void)
trace
(
"test icon spacing
\n
"
);
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
20
,
30
));
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
MAKELPARAM
(
20
,
30
));
ok
(
r
==
MAKELONG
(
w
,
h
)
||
broken
(
r
==
MAKELONG
(
w
,
w
)),
/* win98 */
"Expected %d, got %d
\n
"
,
MAKELONG
(
w
,
h
),
r
);
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
25
,
35
));
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
MAKELPARAM
(
25
,
35
));
expect
(
MAKELONG
(
20
,
30
),
r
);
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
(
LPARAM
)
MAKELONG
(
-
1
,
-
1
));
r
=
SendMessage
(
hwnd
,
LVM_SETICONSPACING
,
0
,
MAKELPARAM
(
-
1
,
-
1
));
expect
(
MAKELONG
(
25
,
35
),
r
);
ok_sequence
(
sequences
,
LISTVIEW_SEQ_INDEX
,
listview_icon_spacing_seq
,
"test icon spacing seq"
,
FALSE
);
...
...
dlls/comctl32/tests/tooltips.c
View file @
06c4de04
...
...
@@ -213,7 +213,7 @@ static void test_customdraw(void) {
ok
(
lResult
,
"Adding the tool to the tooltip failed
\n
"
);
/* Make tooltip appear quickly */
SendMessage
(
hwndTip
,
TTM_SETDELAYTIME
,
(
WPARAM
)
TTDT_INITIAL
,
(
LPARAM
)
MAKELONG
(
1
,
0
));
SendMessage
(
hwndTip
,
TTM_SETDELAYTIME
,
TTDT_INITIAL
,
MAKELPARAM
(
1
,
0
));
/* Put cursor inside window, tooltip will appear immediately */
SetCursorPos
(
100
,
100
);
...
...
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