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
105cf6b2
Commit
105cf6b2
authored
Jan 20, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jan 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: Fix the updown control test to pass under XP.
parent
4275a093
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
updown.c
dlls/comctl32/tests/updown.c
+11
-2
No files found.
dlls/comctl32/tests/updown.c
View file @
105cf6b2
...
...
@@ -109,6 +109,7 @@ static const struct message create_parent_wnd_seq[] = {
{
WM_SETFOCUS
,
sent
|
wparam
|
defwinproc
,
0
},
/* Win9x adds SWP_NOZORDER below */
{
WM_WINDOWPOSCHANGED
,
sent
,
/*|wparam, SWP_SHOWWINDOW|SWP_NOSIZE|SWP_NOMOVE|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE*/
},
{
WM_NCCALCSIZE
,
sent
|
wparam
|
optional
,
1
},
{
WM_SIZE
,
sent
},
{
WM_MOVE
,
sent
},
{
0
}
...
...
@@ -123,7 +124,7 @@ static const struct message add_updown_with_edit_seq[] = {
{
WM_WINDOWPOSCHANGING
,
sent
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
TRUE
},
{
WM_WINDOWPOSCHANGED
,
sent
},
{
WM_SIZE
,
sent
|
wparam
|
lparam
|
defwinproc
,
SIZE_RESTORED
,
MAKELONG
(
91
,
75
)
},
{
WM_SIZE
,
sent
|
wparam
|
defwinproc
,
SIZE_RESTORED
/*, MAKELONG(91, 75) exact size depends on font */
},
{
0
}
};
...
...
@@ -202,6 +203,8 @@ static void ok_sequence_(int sequence_index, const struct message *expected,
while
(
expected
->
message
&&
actual
->
message
)
{
trace_
(
file
,
line
)(
"expected %04x - actual %04x
\n
"
,
expected
->
message
,
actual
->
message
);
if
(
expected
->
message
==
actual
->
message
)
{
if
(
expected
->
flags
&
wparam
)
...
...
@@ -356,6 +359,8 @@ static LRESULT WINAPI parent_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LP
message
!=
WM_GETICON
&&
message
!=
WM_DEVICECHANGE
)
{
trace
(
"parent: %p, %04x, %08x, %08lx
\n
"
,
hwnd
,
message
,
wParam
,
lParam
);
msg
.
message
=
message
;
msg
.
flags
=
sent
|
wparam
|
lparam
;
if
(
defwndproc_counter
)
msg
.
flags
|=
defwinproc
;
...
...
@@ -413,6 +418,8 @@ static LRESULT WINAPI edit_subclass_proc(HWND hwnd, UINT message, WPARAM wParam,
LRESULT
ret
;
struct
message
msg
;
trace
(
"edit: %p, %04x, %08x, %08lx
\n
"
,
hwnd
,
message
,
wParam
,
lParam
);
msg
.
message
=
message
;
msg
.
flags
=
sent
|
wparam
|
lparam
;
if
(
defwndproc_counter
)
msg
.
flags
|=
defwinproc
;
...
...
@@ -459,6 +466,8 @@ static LRESULT WINAPI updown_subclass_proc(HWND hwnd, UINT message, WPARAM wPara
LRESULT
ret
;
struct
message
msg
;
trace
(
"updown: %p, %04x, %08x, %08lx
\n
"
,
hwnd
,
message
,
wParam
,
lParam
);
msg
.
message
=
message
;
msg
.
flags
=
sent
|
wparam
|
lparam
;
if
(
defwndproc_counter
)
msg
.
flags
|=
defwinproc
;
...
...
@@ -519,7 +528,7 @@ static void test_create_updown_control(void)
updown
=
create_updown_control
();
ok
(
updown
!=
NULL
,
"Failed to create updown control
\n
"
);
ok_sequence
(
PARENT_SEQ_INDEX
,
add_updown_to_parent_seq
,
"add updown control to parent"
,
TRUE
);
ok_sequence
(
EDIT_SEQ_INDEX
,
add_updown_with_edit_seq
,
"add updown control with edit"
,
TRU
E
);
ok_sequence
(
EDIT_SEQ_INDEX
,
add_updown_with_edit_seq
,
"add updown control with edit"
,
FALS
E
);
flush_sequences
();
...
...
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