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
33d4c7c5
Commit
33d4c7c5
authored
Feb 25, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add some more optional messages.
parent
0db3d3cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
19 deletions
+22
-19
msg.c
dlls/user32/tests/msg.c
+22
-19
No files found.
dlls/user32/tests/msg.c
View file @
33d4c7c5
...
...
@@ -257,12 +257,13 @@ static const struct message WmSWP_MoveSeq[] = {
static
const
struct
message
WmSWP_ResizeNoZOrder
[]
=
{
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
/*SWP_NOZORDER|*/
SWP_NOACTIVATE
},
{
WM_GETMINMAXINFO
,
sent
|
defwinproc
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
1
},
{
WM_NCPAINT
,
sent
},
{
WM_NCCALCSIZE
,
sent
|
wparam
|
optional
,
1
},
{
WM_NCPAINT
,
sent
|
optional
},
{
WM_GETTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_ERASEBKGND
,
sent
|
optional
},
/* FIXME: remove optional once Wine is fixed */
{
WM_ERASEBKGND
,
sent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
/*SWP_NOZORDER|*/
SWP_NOMOVE
|
SWP_NOCLIENTMOVE
|
SWP_NOACTIVATE
},
{
WM_SIZE
,
sent
|
defwinproc
|
wparam
,
SIZE_RESTORED
},
{
WM_MOVE
,
sent
|
defwinproc
|
optional
},
{
WM_SIZE
,
sent
|
defwinproc
|
wparam
|
optional
,
SIZE_RESTORED
},
{
WM_NCCALCSIZE
,
sent
|
wparam
|
optional
,
1
},
/* Win9x doesn't send it */
{
WM_NCPAINT
,
sent
|
optional
},
/* Win9x doesn't send it */
{
WM_GETTEXT
,
sent
|
defwinproc
|
optional
},
/* Win9x doesn't send it */
...
...
@@ -1234,7 +1235,7 @@ static const struct message WmCreateCustomDialogSeq[] = {
{
WM_GETTEXT
,
sent
|
optional
|
defwinproc
},
{
WM_GETTEXT
,
sent
|
optional
|
defwinproc
},
{
WM_ERASEBKGND
,
sent
},
{
WM_CTLCOLORDLG
,
sent
|
defwinproc
},
{
WM_CTLCOLORDLG
,
sent
|
optional
|
defwinproc
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_GETTEXT
,
sent
|
optional
},
{
WM_GETTEXT
,
sent
|
optional
},
...
...
@@ -1326,10 +1327,10 @@ static const struct message WmModalDialogSeq[] = {
{
WM_ACTIVATE
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_NCPAINT
,
sent
},
{
WM_NCPAINT
,
sent
|
optional
},
{
WM_GETTEXT
,
sent
|
optional
},
{
WM_ERASEBKGND
,
sent
},
{
WM_CTLCOLORDLG
,
sent
},
{
WM_ERASEBKGND
,
sent
|
optional
},
{
WM_CTLCOLORDLG
,
sent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_GETTEXT
,
sent
|
optional
},
{
WM_NCCALCSIZE
,
sent
|
optional
},
...
...
@@ -1637,7 +1638,7 @@ static const struct message WmSHOWNATopInvisible[] = {
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_NCPAINT
,
sent
|
wparam
,
1
},
{
WM_NCPAINT
,
sent
|
wparam
|
optional
,
1
},
{
WM_GETTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_ERASEBKGND
,
sent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
...
...
@@ -2428,7 +2429,7 @@ static const struct message WmCreateMDIchildVisibleMaxSeq1[] = {
{
WM_MDIREFRESHMENU
,
sent
/*|wparam|lparam, 0, 0*/
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
WM_CHILDACTIVATE
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
defwinproc
|
optional
,
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
defwinproc
|
optional
,
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
,
0
,
SWP_FRAMECHANGED
},
/* Win9x: message sequence terminates here. */
...
...
@@ -4086,7 +4087,7 @@ static void test_showwindow(void)
/* ShowWindow( SW_SHOWNA) for invisible top level window */
trace
(
"calling ShowWindow( SW_SHOWNA) for invisible top level window
\n
"
);
ok
(
ShowWindow
(
hwnd
,
SW_SHOWNA
)
==
FALSE
,
"ShowWindow: window was visible
\n
"
);
ok_sequence
(
WmSHOWNATopInvisible
,
"ShowWindow(SW_SHOWNA) on invisible top level window"
,
TRU
E
);
ok_sequence
(
WmSHOWNATopInvisible
,
"ShowWindow(SW_SHOWNA) on invisible top level window"
,
FALS
E
);
/* ShowWindow( SW_SHOWNA) for now visible top level window */
trace
(
"calling ShowWindow( SW_SHOWNA) for now visible top level window
\n
"
);
...
...
@@ -9937,13 +9938,13 @@ static const struct message WmRestore_4[] = {
{
0
}
};
static
const
struct
message
WmRestore_5
[]
=
{
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_SHOWNORMAL
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_FRAMECHANGED
|
SWP_STATECHANGED
,
0
,
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
HCBT_MINMAX
,
hook
|
lparam
|
optional
,
0
,
SW_SHOWNORMAL
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_FRAMECHANGED
|
SWP_STATECHANGED
,
0
,
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
{
HCBT_SETFOCUS
,
hook
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_FRAMECHANGED
|
SWP_STATECHANGED
,
0
,
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
|
optional
,
SWP_FRAMECHANGED
|
SWP_STATECHANGED
,
0
,
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
WM_MOVE
,
sent
|
defwinproc
|
optional
},
{
WM_SIZE
,
sent
|
wparam
|
defwinproc
,
SIZE_RESTORED
},
{
WM_SIZE
,
sent
|
wparam
|
defwinproc
|
optional
,
SIZE_RESTORED
},
{
0
}
};
static
const
struct
message
WmHide_1
[]
=
{
...
...
@@ -10008,8 +10009,10 @@ static const struct message WmMinimize_3[] = {
};
static
const
struct
message
WmShowMinNoActivate
[]
=
{
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_SHOWMINNOACTIVE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_WINDOWPOSCHANGING
,
sent
},
{
WM_WINDOWPOSCHANGED
,
sent
},
{
WM_MOVE
,
sent
|
defwinproc
|
optional
},
{
WM_SIZE
,
sent
|
wparam
|
defwinproc
|
optional
,
SIZE_MINIMIZED
},
{
0
}
};
static
const
struct
message
WmMinMax_1
[]
=
{
...
...
@@ -10035,7 +10038,7 @@ static const struct message WmMinMax_3[] = {
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_FRAMECHANGED
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
|
optional
,
SWP_NOACTIVATE
|
SWP_FRAMECHANGED
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
},
{
WM_MOVE
,
sent
|
defwinproc
|
optional
},
{
WM_SIZE
,
sent
|
wparam
|
defwinproc
|
optional
,
SIZE_
RESTOR
ED
},
{
WM_SIZE
,
sent
|
wparam
|
defwinproc
|
optional
,
SIZE_
MINIMIZ
ED
},
{
0
}
};
static
const
struct
message
WmMinMax_4
[]
=
{
...
...
@@ -10146,7 +10149,7 @@ static void test_ShowWindow(void)
/* 48 */
{
SW_SHOWMAXIMIZED
,
TRUE
,
WS_VISIBLE
|
WS_MAXIMIZE
,
WmShowMaximized_3
,
FALSE
},
/* 49 */
{
SW_SHOW
,
TRUE
,
WS_VISIBLE
|
WS_MAXIMIZE
,
WmEmptySeq
,
FALSE
},
/* 50 */
{
SW_SHOWNORMAL
,
TRUE
,
WS_VISIBLE
,
WmRestore_5
,
FALSE
},
/* 51 */
{
SW_SHOWNORMAL
,
TRUE
,
WS_VISIBLE
,
Wm
EmptySeq
,
FALSE
},
/* 51 */
{
SW_SHOWNORMAL
,
TRUE
,
WS_VISIBLE
,
Wm
Restore_5
,
FALSE
},
/* 52 */
{
SW_HIDE
,
TRUE
,
0
,
WmHide_1
,
FALSE
},
/* 53 */
{
SW_HIDE
,
FALSE
,
0
,
WmEmptySeq
,
FALSE
},
/* 54 */
{
SW_MINIMIZE
,
FALSE
,
WS_VISIBLE
|
WS_MINIMIZE
,
WmMinimize_3
,
FALSE
},
...
...
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