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
9e66be57
Commit
9e66be57
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: Use CreateWindowEx() to create UpDown controls.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d95be60f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
updown.c
dlls/comctl32/tests/updown.c
+8
-3
No files found.
dlls/comctl32/tests/updown.c
View file @
9e66be57
...
...
@@ -293,11 +293,16 @@ static HWND create_updown_control(DWORD style, HWND buddy)
RECT
rect
;
GetClientRect
(
parent_wnd
,
&
rect
);
updown
=
CreateUpDownControl
(
WS_CHILD
|
WS_BORDER
|
WS_VISIBLE
|
style
,
0
,
0
,
rect
.
right
,
rect
.
bottom
,
parent_wnd
,
1
,
GetModuleHandleA
(
NULL
),
buddy
,
100
,
0
,
50
);
updown
=
CreateWindowExA
(
0
,
UPDOWN_CLASSA
,
NULL
,
WS_CHILD
|
WS_BORDER
|
WS_VISIBLE
|
style
,
0
,
0
,
rect
.
right
,
rect
.
bottom
,
parent_wnd
,
(
HMENU
)
1
,
GetModuleHandleA
(
NULL
),
NULL
);
ok
(
updown
!=
NULL
,
"Failed to create UpDown control.
\n
"
);
if
(
!
updown
)
return
NULL
;
SendMessageA
(
updown
,
UDM_SETBUDDY
,
(
WPARAM
)
buddy
,
0
);
SendMessageA
(
updown
,
UDM_SETRANGE
,
0
,
MAKELONG
(
100
,
0
));
SendMessageA
(
updown
,
UDM_SETPOS
,
0
,
MAKELONG
(
50
,
0
));
oldproc
=
(
WNDPROC
)
SetWindowLongPtrA
(
updown
,
GWLP_WNDPROC
,
(
LONG_PTR
)
updown_subclass_proc
);
SetWindowLongPtrA
(
updown
,
GWLP_USERDATA
,
(
LONG_PTR
)
oldproc
);
...
...
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