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
d0aaae99
Commit
d0aaae99
authored
Sep 25, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Use UDM_GET/SETPOS instead of UDM_GET/SETPOS32 for compatibility with old versions.
parent
ae2b8a6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
updown.c
dlls/comctl32/tests/updown.c
+5
-7
No files found.
dlls/comctl32/tests/updown.c
View file @
d0aaae99
...
...
@@ -513,7 +513,7 @@ static void test_updown_base(void)
/* switch base with buddy attached */
updown
=
create_updown_control
(
UDS_SETBUDDYINT
);
r
=
SendMessage
(
updown
,
UDM_SETPOS
32
,
0
,
10
);
r
=
SendMessage
(
updown
,
UDM_SETPOS
,
0
,
10
);
expect
(
50
,
r
);
GetWindowTextA
(
edit
,
text
,
sizeof
(
text
)
/
sizeof
(
CHAR
));
...
...
@@ -587,7 +587,6 @@ static void test_UDS_SETBUDDYINT(void)
HWND
updown
;
DWORD
style
,
ret
;
CHAR
text
[
10
];
BOOL
b
;
/* cleanup buddy */
text
[
0
]
=
'\0'
;
...
...
@@ -619,7 +618,7 @@ static void test_UDS_SETBUDDYINT(void)
/* set edit text directly, check position */
strcpy
(
text
,
"10"
);
SetWindowTextA
(
edit
,
text
);
ret
=
SendMessageA
(
updown
,
UDM_GETPOS
32
,
0
,
0
);
ret
=
SendMessageA
(
updown
,
UDM_GETPOS
,
0
,
0
);
expect
(
10
,
ret
);
strcpy
(
text
,
"11"
);
SetWindowTextA
(
edit
,
text
);
...
...
@@ -629,10 +628,9 @@ static void test_UDS_SETBUDDYINT(void)
/* set to invalid value */
strcpy
(
text
,
"21st"
);
SetWindowTextA
(
edit
,
text
);
b
=
FALSE
;
ret
=
SendMessageA
(
updown
,
UDM_GETPOS32
,
0
,
(
LPARAM
)
&
b
);
expect
(
11
,
ret
);
expect
(
TRUE
,
b
);
ret
=
SendMessageA
(
updown
,
UDM_GETPOS
,
0
,
0
);
expect
(
11
,
LOWORD
(
ret
));
expect
(
TRUE
,
HIWORD
(
ret
));
/* set style back */
style
=
GetWindowLongA
(
updown
,
GWL_STYLE
);
SetWindowLongA
(
updown
,
GWL_STYLE
,
style
|
UDS_SETBUDDYINT
);
...
...
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