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
b2d89f48
Commit
b2d89f48
authored
Dec 03, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/updown: Specify all styles explicitly in tests.
parent
8151963f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
updown.c
dlls/comctl32/tests/updown.c
+10
-10
No files found.
dlls/comctl32/tests/updown.c
View file @
b2d89f48
...
...
@@ -287,7 +287,7 @@ static HWND create_updown_control(DWORD style)
RECT
rect
;
GetClientRect
(
parent_wnd
,
&
rect
);
updown
=
CreateUpDownControl
(
WS_CHILD
|
WS_BORDER
|
WS_VISIBLE
|
UDS_ALIGNRIGHT
|
style
,
updown
=
CreateUpDownControl
(
WS_CHILD
|
WS_BORDER
|
WS_VISIBLE
|
style
,
0
,
0
,
rect
.
right
,
rect
.
bottom
,
parent_wnd
,
1
,
GetModuleHandleA
(
NULL
),
edit
,
100
,
0
,
50
);
if
(
!
updown
)
return
NULL
;
...
...
@@ -304,7 +304,7 @@ static void test_updown_pos(void)
HWND
updown
;
int
r
;
updown
=
create_updown_control
(
0
);
updown
=
create_updown_control
(
UDS_ALIGNRIGHT
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
...
...
@@ -365,7 +365,7 @@ static void test_updown_pos32(void)
int
r
;
int
low
,
high
;
updown
=
create_updown_control
(
0
);
updown
=
create_updown_control
(
UDS_ALIGNRIGHT
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
...
...
@@ -437,7 +437,7 @@ static void test_updown_buddy(void)
{
HWND
updown
,
buddyReturn
;
updown
=
create_updown_control
(
0
);
updown
=
create_updown_control
(
UDS_ALIGNRIGHT
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
...
...
@@ -462,7 +462,7 @@ static void test_updown_base(void)
int
r
;
CHAR
text
[
10
];
updown
=
create_updown_control
(
0
);
updown
=
create_updown_control
(
UDS_ALIGNRIGHT
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
...
...
@@ -499,7 +499,7 @@ static void test_updown_base(void)
DestroyWindow
(
updown
);
/* switch base with buddy attached */
updown
=
create_updown_control
(
UDS_SETBUDDYINT
);
updown
=
create_updown_control
(
UDS_SETBUDDYINT
|
UDS_ALIGNRIGHT
);
r
=
SendMessage
(
updown
,
UDM_SETPOS
,
0
,
10
);
expect
(
50
,
r
);
...
...
@@ -523,7 +523,7 @@ static void test_updown_unicode(void)
HWND
updown
;
int
r
;
updown
=
create_updown_control
(
0
);
updown
=
create_updown_control
(
UDS_ALIGNRIGHT
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
...
...
@@ -562,7 +562,7 @@ static void test_updown_create(void)
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
updown
=
create_updown_control
(
0
);
updown
=
create_updown_control
(
UDS_ALIGNRIGHT
);
ok
(
updown
!=
NULL
,
"Failed to create updown control
\n
"
);
ok_sequence
(
sequences
,
PARENT_SEQ_INDEX
,
add_updown_to_parent_seq
,
"add updown control to parent"
,
TRUE
);
ok_sequence
(
sequences
,
EDIT_SEQ_INDEX
,
add_updown_with_edit_seq
,
"add updown control with edit"
,
FALSE
);
...
...
@@ -587,7 +587,7 @@ static void test_UDS_SETBUDDYINT(void)
SetWindowTextA
(
edit
,
text
);
/* creating without UDS_SETBUDDYINT */
updown
=
create_updown_control
(
0
);
updown
=
create_updown_control
(
UDS_ALIGNRIGHT
);
/* try to set UDS_SETBUDDYINT after creation */
style
=
GetWindowLongA
(
updown
,
GWL_STYLE
);
SetWindowLongA
(
updown
,
GWL_STYLE
,
style
|
UDS_SETBUDDYINT
);
...
...
@@ -599,7 +599,7 @@ static void test_UDS_SETBUDDYINT(void)
DestroyWindow
(
updown
);
/* creating with UDS_SETBUDDYINT */
updown
=
create_updown_control
(
UDS_SETBUDDYINT
);
updown
=
create_updown_control
(
UDS_SETBUDDYINT
|
UDS_ALIGNRIGHT
);
GetWindowTextA
(
edit
,
text
,
sizeof
(
text
)
/
sizeof
(
CHAR
));
/* 50 is initial value here */
ok
(
lstrcmpA
(
text
,
"50"
)
==
0
,
"Expected '50', got '%s'
\n
"
,
text
);
...
...
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