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
411c2296
Commit
411c2296
authored
Mar 06, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add more optional messages for Vista and Win9x.
parent
74271fc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
msg.c
dlls/user32/tests/msg.c
+18
-9
No files found.
dlls/user32/tests/msg.c
View file @
411c2296
...
...
@@ -371,7 +371,7 @@ static const struct message WmSwitchNotMaximizedChild[] = {
static
const
struct
message
WmSWP_FrameChanged_clip
[]
=
{
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
parent
,
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_FRAMECHANGED
},
{
WM_NCCALCSIZE
,
sent
|
wparam
|
parent
,
1
},
{
WM_NCPAINT
,
sent
|
parent
},
/* wparam != 1 */
{
WM_NCPAINT
,
sent
|
parent
|
optional
},
/* wparam != 1 */
{
WM_GETTEXT
,
sent
|
parent
|
defwinproc
|
optional
},
{
WM_ERASEBKGND
,
sent
|
parent
|
optional
},
/* FIXME: remove optional once Wine is fixed */
{
WM_NCPAINT
,
sent
},
/* wparam != 1 */
...
...
@@ -390,12 +390,12 @@ static const struct message WmSWP_FrameChangedDeferErase[] = {
{
WM_NCCALCSIZE
,
sent
|
wparam
|
parent
,
1
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
|
parent
,
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_DEFERERASE
|
SWP_NOACTIVATE
|
SWP_FRAMECHANGED
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_PAINT
,
sent
|
parent
},
{
WM_NCPAINT
,
sent
|
beginpaint
|
parent
},
/* wparam != 1 */
{
WM_PAINT
,
sent
|
parent
|
optional
},
{
WM_NCPAINT
,
sent
|
beginpaint
|
parent
|
optional
},
/* wparam != 1 */
{
WM_GETTEXT
,
sent
|
beginpaint
|
parent
|
defwinproc
|
optional
},
{
WM_PAINT
,
sent
},
{
WM_NCPAINT
,
sent
|
beginpaint
},
/* wparam != 1 */
{
WM_ERASEBKGND
,
sent
|
beginpaint
},
{
WM_ERASEBKGND
,
sent
|
beginpaint
|
optional
},
{
0
}
};
...
...
@@ -2001,10 +2001,10 @@ static void ok_sequence_(const struct message *expected_list, const char *contex
if
((
expected
->
lParam
^
actual
->
lParam
)
&
~
expected
->
lp_mask
)
dump
++
;
}
}
if
((
expected
->
flags
&
defwinproc
)
!=
(
actual
->
flags
&
defwinproc
)
&&
(
expected
->
flags
&
optional
))
if
((
expected
->
flags
&
optional
)
&&
(
(
expected
->
flags
^
actual
->
flags
)
&
(
defwinproc
|
parent
)
))
{
/* don't match
messages if their defwinproc
status differs */
/* don't match
optional messages if their defwinproc or parent
status differs */
expected
++
;
count
++
;
continue
;
...
...
@@ -8210,6 +8210,8 @@ static const struct message ScrollWindowPaint1[] = {
{
WM_GETTEXT
,
sent
|
optional
},
{
WM_GETTEXT
,
sent
|
optional
},
{
WM_GETTEXT
,
sent
|
optional
},
{
WM_GETTEXT
,
sent
|
optional
},
{
WM_GETTEXT
,
sent
|
optional
},
{
WM_ERASEBKGND
,
sent
|
optional
},
{
0
}
};
...
...
@@ -8978,6 +8980,7 @@ static void test_PeekMessage(void)
ok
(
GetLastError
()
==
ERROR_INVALID_FLAGS
,
"wrong error %d
\n
"
,
GetLastError
());
qstatus
=
GetQueueStatus
(
qs_all_input
);
}
qstatus
&=
~
MAKELONG
(
0x4000
,
0x4000
);
/* sometimes set on Win95 */
ok
(
qstatus
==
MAKELONG
(
QS_SENDMESSAGE
,
QS_SENDMESSAGE
),
"wrong qstatus %08x
\n
"
,
qstatus
);
...
...
@@ -10438,13 +10441,19 @@ static const struct message SetActiveWindowSeq0[] =
{
WM_ACTIVATEAPP
,
sent
|
wparam
|
optional
,
0
},
{
WM_ACTIVATEAPP
,
sent
|
wparam
|
optional
,
0
},
{
WM_QUERYNEWPALETTE
,
sent
|
wparam
|
lparam
|
optional
,
0
,
0
},
{
WM_KILLFOCUS
,
sent
|
optional
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
},
{
WM_NCACTIVATE
,
sent
|
wparam
|
optional
,
1
},
{
WM_GETTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_ACTIVATE
,
sent
|
wparam
|
optional
,
1
},
{
HCBT_SETFOCUS
,
hook
|
optional
},
{
WM_KILLFOCUS
,
sent
|
defwinproc
},
{
WM_KILLFOCUS
,
sent
|
defwinproc
|
optional
},
{
WM_IME_SETCONTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_IME_SETCONTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_IME_SETCONTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_IME_SETCONTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_IME_SETCONTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_IME_SETCONTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_IME_SETCONTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_IME_SETCONTEXT
,
sent
|
defwinproc
|
optional
},
...
...
@@ -10553,7 +10562,7 @@ static void test_SetActiveWindow(void)
trace
(
"SetActiveWindow(0)
\n
"
);
ret
=
SetActiveWindow
(
0
);
ok
(
ret
==
popup
,
"Failed to SetActiveWindow(0)
\n
"
);
ok_sequence
(
SetActiveWindowSeq0
,
"SetActiveWindow(0)"
,
TRU
E
);
ok_sequence
(
SetActiveWindowSeq0
,
"SetActiveWindow(0)"
,
FALS
E
);
flush_sequence
();
trace
(
"SetActiveWindow(hwnd), hwnd visible
\n
"
);
...
...
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