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
2d7aa093
Commit
2d7aa093
authored
Dec 21, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/tests: Add separate test for CreateUpDownControl().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9e66be57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
updown.c
dlls/comctl32/tests/updown.c
+24
-0
No files found.
dlls/comctl32/tests/updown.c
View file @
2d7aa093
...
...
@@ -800,6 +800,29 @@ static void test_UDS_SETBUDDYINT(void)
DestroyWindow
(
updown
);
}
static
void
test_CreateUpDownControl
(
void
)
{
HWND
updown
,
buddy
;
DWORD
range
,
pos
;
RECT
rect
;
GetClientRect
(
parent_wnd
,
&
rect
);
updown
=
CreateUpDownControl
(
WS_CHILD
|
WS_BORDER
|
WS_VISIBLE
,
0
,
0
,
rect
.
right
,
rect
.
bottom
,
parent_wnd
,
1
,
GetModuleHandleA
(
NULL
),
g_edit
,
100
,
10
,
50
);
ok
(
updown
!=
NULL
,
"Failed to create control.
\n
"
);
buddy
=
(
HWND
)
SendMessageA
(
updown
,
UDM_GETBUDDY
,
0
,
0
);
ok
(
buddy
==
g_edit
,
"Unexpected buddy window.
\n
"
);
range
=
SendMessageA
(
updown
,
UDM_GETRANGE
,
0
,
0
);
ok
(
range
==
MAKELONG
(
100
,
10
),
"Unexpected range.
\n
"
);
pos
=
SendMessageA
(
updown
,
UDM_GETPOS
,
0
,
0
);
ok
(
pos
==
MAKELONG
(
50
,
1
),
"Unexpected position.
\n
"
);
DestroyWindow
(
updown
);
}
START_TEST
(
updown
)
{
HMODULE
mod
=
GetModuleHandleA
(
"comctl32.dll"
);
...
...
@@ -821,6 +844,7 @@ START_TEST(updown)
test_updown_base
();
test_updown_unicode
();
test_UDS_SETBUDDYINT
();
test_CreateUpDownControl
();
DestroyWindow
(
g_edit
);
DestroyWindow
(
parent_wnd
);
...
...
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