Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
93748f72
Commit
93748f72
authored
Jul 01, 2023
by
Esme Povirk
Committed by
Alexandre Julliard
Jul 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Implement EVENT_OBJECT_SHOW/HIDE for window objects.
parent
45ac4ce9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
90 deletions
+99
-90
msg.c
dlls/user32/tests/msg.c
+91
-90
window.c
dlls/win32u/window.c
+8
-0
No files found.
dlls/user32/tests/msg.c
View file @
93748f72
...
...
@@ -194,7 +194,7 @@ static const struct message WmCreateOverlappedSeq[] = {
*/
static
const
struct
message
WmSWP_ShowOverlappedSeq
[]
=
{
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_NCPAINT
,
sent
|
wparam
|
optional
,
1
},
{
WM_GETTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_ERASEBKGND
,
sent
|
optional
},
...
...
@@ -237,7 +237,7 @@ static const struct message WmSWP_ShowOverlappedSeq[] = {
*/
static
const
struct
message
WmSWP_HideOverlappedSeq
[]
=
{
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
},
{
WM_ACTIVATEAPP
,
sent
|
wparam
|
optional
,
1
},
...
...
@@ -469,7 +469,7 @@ static const struct message WmShowOverlappedSeq[] = {
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_NCPAINT
,
sent
|
wparam
|
optional
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_NCPAINT
,
sent
|
wparam
|
optional
,
1
},
{
WM_GETTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_ERASEBKGND
,
sent
|
optional
},
...
...
@@ -516,7 +516,7 @@ static const struct message WmShowMaxOverlappedSeq[] = {
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_STATECHANGED
},
{
WM_GETMINMAXINFO
,
sent
|
defwinproc
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
TRUE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
optional
,
0
,
0
},
{
WM_QUERYNEWPALETTE
,
sent
|
wparam
|
lparam
|
optional
,
0
,
0
},
...
...
@@ -696,7 +696,7 @@ static const struct message WmShowMinOverlappedSeq[] = {
static
const
struct
message
WmHideOverlappedSeq
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_SIZE
,
sent
|
optional
},
/* XP doesn't send it */
{
WM_MOVE
,
sent
|
optional
},
/* XP doesn't send it */
...
...
@@ -715,7 +715,7 @@ static const struct message WmDestroyOverlappedSeq[] = {
{
HCBT_DESTROYWND
,
hook
},
{
0x0090
,
sent
|
optional
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
0x0090
,
sent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_NCACTIVATE
,
sent
|
optional
|
wparam
,
0
},
...
...
@@ -748,7 +748,7 @@ static const struct message WmCreateMaxPopupSeq[] = {
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_QUERYNEWPALETTE
,
sent
|
wparam
|
lparam
|
optional
,
0
,
0
},
...
...
@@ -798,7 +798,7 @@ static const struct message WmShowMaxPopupResizedSeq[] = {
{
WM_GETMINMAXINFO
,
sent
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
,
0
,
SWP_STATECHANGED
/* w1064v1809 */
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
TRUE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_QUERYNEWPALETTE
,
sent
|
wparam
|
lparam
|
optional
,
0
,
0
},
...
...
@@ -830,7 +830,7 @@ static const struct message WmShowMaxPopupSeq[] = {
{
WM_GETMINMAXINFO
,
sent
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
,
0
,
SWP_STATECHANGED
/* w1064v1809 */
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
TRUE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_QUERYNEWPALETTE
,
sent
|
wparam
|
lparam
|
optional
,
0
,
0
},
...
...
@@ -868,7 +868,7 @@ static const struct message WmCreatePopupSeq[] = {
{
WM_MOVE
,
sent
},
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_QUERYNEWPALETTE
,
sent
|
wparam
|
lparam
|
optional
,
0
,
0
},
...
...
@@ -1137,7 +1137,7 @@ static const struct message WmShowPopupExtremeLocationSeq[] = {
{
WM_MOVE
,
sent
},
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
optional
},
...
...
@@ -1178,7 +1178,7 @@ static const struct message WmShowPopupFirstDrawSeq_1[] = {
{
WM_MOVE
,
sent
},
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
optional
},
...
...
@@ -1216,7 +1216,7 @@ static const struct message WmShowPopupFirstDrawSeq_2[] = {
{
WM_GETMINMAXINFO
,
sent
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_STATECHANGED
|
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
TRUE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
optional
},
...
...
@@ -1255,7 +1255,7 @@ static const struct message WmFirstDrawSetWindowPosSeq1[] = {
{
WM_SIZE
,
sent
|
wparam
,
SIZE_RESTORED
},
{
WM_MOVE
,
sent
},
{
WM_WINDOWPOSCHANGING
,
sent
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
optional
},
...
...
@@ -1314,8 +1314,9 @@ static const struct message WmFirstDrawSetWindowPosSeq3[] = {
{
EVENT_OBJECT_CREATE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_SIZE
,
sent
|
wparam
,
SIZE_RESTORED
},
{
WM_MOVE
,
sent
},
/* These happen only on Wine: */
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
optional
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
/* Probably shouldn't happen, but not part of this test */
{
WM_QUERYNEWPALETTE
,
sent
|
optional
},
{
WM_ACTIVATEAPP
,
sent
|
optional
},
{
WM_NCACTIVATE
,
sent
|
optional
},
...
...
@@ -1333,7 +1334,7 @@ static const struct message WmFirstDrawSetWindowPosSeq4[] = {
{
WM_SIZE
,
sent
|
wparam
,
SIZE_RESTORED
},
{
WM_MOVE
,
sent
},
{
WM_WINDOWPOSCHANGING
,
sent
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
optional
},
...
...
@@ -1362,7 +1363,7 @@ static const struct message WmFirstDrawSetWindowPosSeq5[] = {
{
WM_SIZE
,
sent
|
wparam
,
SIZE_RESTORED
},
{
WM_MOVE
,
sent
},
{
WM_WINDOWPOSCHANGING
,
sent
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
optional
},
...
...
@@ -1441,7 +1442,7 @@ static const struct message WmCreateVisibleChildSeq[] = {
{
WM_PARENTNOTIFY
,
sent
|
parent
|
wparam
,
WM_CREATE
},
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ERASEBKGND
,
sent
|
parent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_NCCALCSIZE
,
sent
|
wparam
|
optional
,
1
},
/* WinXP */
...
...
@@ -1452,7 +1453,7 @@ static const struct message WmCreateVisibleChildSeq[] = {
static
const
struct
message
WmShowChildSeq
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ERASEBKGND
,
sent
|
parent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
...
...
@@ -1461,7 +1462,7 @@ static const struct message WmShowChildSeq[] = {
static
const
struct
message
WmHideChildSeq
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ERASEBKGND
,
sent
|
parent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
...
...
@@ -1470,7 +1471,7 @@ static const struct message WmHideChildSeq[] = {
static
const
struct
message
WmHideChildSeq2
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ERASEBKGND
,
sent
|
parent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
...
...
@@ -1480,7 +1481,7 @@ static const struct message WmHideChildSeq2[] = {
*/
static
const
struct
message
WmShowChildSeq_2
[]
=
{
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_CHILDACTIVATE
,
sent
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
...
...
@@ -1490,7 +1491,7 @@ static const struct message WmShowChildSeq_2[] = {
*/
static
const
struct
message
WmShowChildSeq_3
[]
=
{
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
};
...
...
@@ -1507,7 +1508,7 @@ static const struct message WmShowChildInvisibleParentSeq_1[] = {
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_MINIMIZE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
,
0
,
SWP_NOACTIVATE
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
1
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_CHILDACTIVATE
,
sent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOREDRAW
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
,
0
,
SWP_NOACTIVATE
},
{
WM_MOVE
,
sent
|
defwinproc
},
...
...
@@ -1530,7 +1531,7 @@ static const struct message WmShowChildInvisibleParentSeq_2[] = {
{
WM_GETMINMAXINFO
,
sent
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_STATECHANGED
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
1
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_CHILDACTIVATE
,
sent
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOMOVE
|
SWP_NOREDRAW
|
SWP_NOCLIENTMOVE
|
SWP_STATECHANGED
},
{
WM_SIZE
,
sent
|
defwinproc
|
wparam
,
SIZE_MAXIMIZED
},
...
...
@@ -1547,7 +1548,7 @@ static const struct message WmShowChildInvisibleParentSeq_3[] = {
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_SHOWMINIMIZED
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
1
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_CHILDACTIVATE
,
sent
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOREDRAW
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
},
{
WM_MOVE
,
sent
|
defwinproc
},
...
...
@@ -1569,7 +1570,7 @@ static const struct message WmShowChildInvisibleParentSeq_4[] = {
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_SHOWMINNOACTIVE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOACTIVATE
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
1
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
},
{
WM_MOVE
,
sent
|
defwinproc
},
{
WM_SIZE
,
sent
|
defwinproc
|
wparam
|
lparam
,
SIZE_MINIMIZED
,
0
},
...
...
@@ -1598,14 +1599,14 @@ static const struct message WmHideChildInvisibleParentSeq[] = {
/* SetWindowPos(SWP_SHOWWINDOW) for child with invisible parent */
static
const
struct
message
WmShowChildInvisibleParentSeq_6
[]
=
{
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
};
/* SetWindowPos(SWP_HIDEWINDOW) for child with invisible parent */
static
const
struct
message
WmHideChildInvisibleParentSeq_2
[]
=
{
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOREDRAW
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
};
...
...
@@ -1616,7 +1617,7 @@ static const struct message WmDestroyChildSeq[] = {
{
WM_PARENTNOTIFY
,
sent
|
parent
|
wparam
,
WM_DESTROY
},
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ERASEBKGND
,
sent
|
parent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
HCBT_SETFOCUS
,
hook
},
/* set focus to a parent */
...
...
@@ -1679,7 +1680,7 @@ static const struct message WmCreateCustomDialogSeq[] = {
{
WM_WINDOWPOSCHANGED
,
sent
|
optional
},
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
...
...
@@ -1724,7 +1725,7 @@ static const struct message WmCreateCustomDialogSeq[] = {
/* Calling EndDialog for a custom dialog (32) */
static
const
struct
message
WmEndCustomDialogSeq
[]
=
{
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_GETTEXT
,
sent
|
optional
},
{
HCBT_ACTIVATE
,
hook
},
...
...
@@ -1750,7 +1751,7 @@ static const struct message WmEndCustomDialogSeq[] = {
static
const
struct
message
WmShowCustomDialogSeq
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
...
...
@@ -1800,7 +1801,7 @@ static const struct message WmModalDialogSeq[] = {
{
WM_GETTEXT
,
sent
|
optional
},
{
WM_ACTIVATE
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_NCPAINT
,
sent
|
optional
},
{
WM_GETTEXT
,
sent
|
optional
},
{
WM_ERASEBKGND
,
sent
|
optional
},
...
...
@@ -1840,7 +1841,7 @@ static const struct message WmModalDialogSeq[] = {
{
EVENT_OBJECT_STATECHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_ENABLE
,
sent
|
parent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_GETTEXT
,
sent
|
optional
},
{
HCBT_ACTIVATE
,
hook
},
...
...
@@ -2104,7 +2105,7 @@ static const struct message WmSHOWNAChildVisParVis[] = {
static
const
struct
message
WmSHOWNAChildInvisParVis
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ERASEBKGND
,
sent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOACTIVATE
|
SWP_NOCLIENTMOVE
},
{
0
}
...
...
@@ -2127,7 +2128,7 @@ static const struct message WmSHOWNATopInvisible[] = {
{
WM_WINDOWPOSCHANGED
,
sent
|
optional
},
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_NCPAINT
,
sent
|
wparam
|
optional
,
1
},
{
WM_GETTEXT
,
sent
|
defwinproc
|
optional
},
{
WM_ERASEBKGND
,
sent
|
optional
},
...
...
@@ -2153,7 +2154,7 @@ static const struct message WmTrackPopupMenuMinimizeWindow[] = {
{
0x0094
,
sent
|
optional
},
{
0x0094
,
sent
|
optional
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
optional
,
0
,
0
},
{
EVENT_SYSTEM_MENUPOPUPSTART
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
WM_ENTERIDLE
,
sent
|
wparam
,
2
},
...
...
@@ -2179,7 +2180,7 @@ static const struct message WmTrackPopupMenuMinimizeWindow[] = {
{
WM_CAPTURECHANGED
,
sent
|
defwinproc
},
{
EVENT_SYSTEM_MENUPOPUPEND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
HCBT_DESTROYWND
,
hook
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_DESTROY
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_UNINITMENUPOPUP
,
sent
|
defwinproc
|
lparam
,
0
,
0
},
{
WM_MENUSELECT
,
sent
|
defwinproc
|
wparam
|
lparam
,
0xffff0000
,
0
},
...
...
@@ -2205,7 +2206,7 @@ static const struct message WmTrackPopupMenu[] = {
{
0x0094
,
sent
|
optional
},
{
0x0094
,
sent
|
optional
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
optional
,
0
,
0
},
{
EVENT_SYSTEM_MENUPOPUPSTART
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
WM_ENTERIDLE
,
sent
|
wparam
,
2
},
...
...
@@ -2213,7 +2214,7 @@ static const struct message WmTrackPopupMenu[] = {
{
WM_CAPTURECHANGED
,
sent
},
{
EVENT_SYSTEM_MENUPOPUPEND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
HCBT_DESTROYWND
,
hook
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_DESTROY
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_UNINITMENUPOPUP
,
sent
|
lparam
,
0
,
0
},
{
WM_MENUSELECT
,
sent
|
wparam
|
lparam
,
0xffff0000
,
0
},
...
...
@@ -2240,7 +2241,7 @@ static const struct message WmTrackPopupMenuCapture[] = {
{
0x0094
,
sent
|
optional
},
{
0x0094
,
sent
|
optional
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
optional
,
0
,
0
},
{
EVENT_SYSTEM_MENUPOPUPSTART
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
WM_ENTERIDLE
,
sent
|
wparam
,
2
},
...
...
@@ -2248,7 +2249,7 @@ static const struct message WmTrackPopupMenuCapture[] = {
{
WM_CAPTURECHANGED
,
sent
},
{
EVENT_SYSTEM_MENUPOPUPEND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
HCBT_DESTROYWND
,
hook
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_DESTROY
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_UNINITMENUPOPUP
,
sent
|
lparam
,
0
,
0
},
{
WM_MENUSELECT
,
sent
|
wparam
|
lparam
,
0xffff0000
,
0
},
...
...
@@ -2291,14 +2292,14 @@ static const struct message WmTrackPopupMenuAbort[] = {
{
0x0094
,
sent
|
optional
},
{
0x0094
,
sent
|
optional
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
optional
,
0
,
0
},
{
EVENT_SYSTEM_MENUPOPUPSTART
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
EVENT_SYSTEM_CAPTUREEND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_CAPTURECHANGED
,
sent
},
{
EVENT_SYSTEM_MENUPOPUPEND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
HCBT_DESTROYWND
,
hook
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_DESTROY
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_UNINITMENUPOPUP
,
sent
|
lparam
,
0
,
0
},
{
WM_MENUSELECT
,
sent
|
wparam
|
lparam
,
0xffff0000
,
0
},
...
...
@@ -2945,7 +2946,7 @@ static const struct message WmCreateMDIframeSeq[] = {
{
WM_WINDOWPOSCHANGED
,
sent
|
optional
},
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_QUERYNEWPALETTE
,
sent
|
wparam
|
lparam
|
optional
,
0
,
0
},
...
...
@@ -2973,7 +2974,7 @@ static const struct message WmDestroyMDIframeSeq[] = {
{
HCBT_DESTROYWND
,
hook
},
{
0x0090
,
sent
|
optional
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_NCACTIVATE
,
sent
|
wparam
|
optional
,
0
},
/* Win9x */
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
|
optional
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_NCACTIVATE
,
sent
|
wparam
|
optional
,
0
},
/* XP */
...
...
@@ -2999,7 +3000,7 @@ static const struct message WmCreateMDIclientSeq[] = {
{
WM_PARENTNOTIFY
,
sent
|
wparam
,
WM_CREATE
},
/* in MDI frame */
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
|
optional
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
};
...
...
@@ -3007,7 +3008,7 @@ static const struct message WmCreateMDIclientSeq[] = {
static
const
struct
message
WmShowMDIclientSeq
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
|
optional
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
};
...
...
@@ -3027,7 +3028,7 @@ static const struct message WmDestroyMDIclientSeq[] = {
{
WM_PARENTNOTIFY
,
sent
|
wparam
,
WM_DESTROY
},
/* in MDI frame */
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
|
optional
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
EVENT_OBJECT_DESTROY
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_DESTROY
,
sent
},
...
...
@@ -3051,7 +3052,7 @@ static const struct message WmCreateMDIchildVisibleSeq[] = {
{
WM_PARENTNOTIFY
,
sent
/*|wparam, WM_CREATE*/
},
/* in MDI client */
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_MDIREFRESHMENU
,
sent
/*|wparam|lparam, 0, 0*/
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
...
...
@@ -3147,7 +3148,7 @@ static const struct message WmDestroyMDIchildVisibleSeq[] = {
{
WM_PARENTNOTIFY
,
sent
/*|wparam, WM_DESTROY*/
},
/* in MDI client */
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ERASEBKGND
,
sent
|
parent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
|
optional
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
...
...
@@ -3267,7 +3268,7 @@ static const struct message WmCreateMDIchildVisibleMaxSeq1[] = {
{
WM_PARENTNOTIFY
,
sent
/*|wparam, WM_CREATE*/
},
/* in MDI client */
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_MDIREFRESHMENU
,
sent
/*|wparam|lparam, 0, 0*/
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
...
...
@@ -3342,7 +3343,7 @@ static const struct message WmCreateMDIchildVisibleMaxSeq2[] = {
{
WM_PARENTNOTIFY
,
sent
/*|wparam, WM_CREATE*/
},
/* in MDI client */
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_MDIREFRESHMENU
,
sent
/*|wparam|lparam, 0, 0*/
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
...
...
@@ -3410,7 +3411,7 @@ static const struct message WmCreateMDIchildVisibleMaxSeq3[] = {
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_MDIREFRESHMENU
,
sent
/*|wparam|lparam, 0, 0*/
},
...
...
@@ -3549,7 +3550,7 @@ static const struct message WmDestroyMDIchildVisibleMaxSeq2[] = {
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
defwinproc
,
SWP_NOACTIVATE
|
SWP_FRAMECHANGED
|
SWP_SHOWWINDOW
|
SWP_STATECHANGED
},
{
WM_NCCALCSIZE
,
sent
|
defwinproc
|
wparam
,
1
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
|
defwinproc
,
SWP_NOACTIVATE
|
SWP_FRAMECHANGED
|
SWP_SHOWWINDOW
|
SWP_NOMOVE
|
SWP_NOREDRAW
|
SWP_NOCLIENTMOVE
|
SWP_STATECHANGED
},
{
WM_SIZE
,
sent
|
defwinproc
|
wparam
,
SIZE_RESTORED
},
...
...
@@ -3585,7 +3586,7 @@ static const struct message WmDestroyMDIchildVisibleMaxSeq2[] = {
/* apparently ShowWindow(SW_SHOW) on an MDI client */
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
WM_MDIREFRESHMENU
,
sent
},
...
...
@@ -3599,7 +3600,7 @@ static const struct message WmDestroyMDIchildVisibleMaxSeq2[] = {
{
WM_PARENTNOTIFY
,
sent
/*|wparam, WM_DESTROY*/
},
/* in MDI client */
{
WM_SHOWWINDOW
,
sent
|
defwinproc
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
defwinproc
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ERASEBKGND
,
sent
|
parent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
|
defwinproc
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
...
...
@@ -3613,7 +3614,7 @@ static const struct message WmDestroyMDIchildVisibleMaxSeq1[] = {
{
WM_MDIDESTROY
,
sent
},
/* in MDI client */
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ERASEBKGND
,
sent
|
parent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
...
...
@@ -3719,7 +3720,7 @@ static const struct message WmDestroyMDIchildVisibleMaxSeq1[] = {
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_FRAMECHANGED
|
SWP_SHOWWINDOW
|
SWP_STATECHANGED
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
1
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_CHILDACTIVATE
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_FRAMECHANGED
|
SWP_SHOWWINDOW
|
SWP_NOMOVE
|
SWP_NOCLIENTMOVE
|
SWP_STATECHANGED
},
...
...
@@ -3769,7 +3770,7 @@ static const struct message WmDestroyMDIchildVisibleMaxSeq1[] = {
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_ERASEBKGND
,
sent
|
parent
|
optional
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
|
optional
,
SWP_HIDEWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
...
...
@@ -3784,7 +3785,7 @@ static const struct message WmMaximizeMDIchildInvisibleSeq[] = {
{
WM_GETMINMAXINFO
,
sent
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_STATECHANGED
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
1
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_CHILDACTIVATE
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
|
defwinproc
,
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
...
...
@@ -3817,7 +3818,7 @@ static const struct message WmMaximizeMDIchildInvisibleSeq2[] = {
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
,
0
,
SWP_STATECHANGED
/* w1064v1809 */
},
{
WM_GETMINMAXINFO
,
sent
|
defwinproc
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
1
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_CHILDACTIVATE
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
defwinproc
|
optional
,
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
...
...
@@ -3982,7 +3983,7 @@ static const struct message WmRestoreMDIchildInvisibleSeq[] = {
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_RESTORE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_STATECHANGED
},
{
WM_NCCALCSIZE
,
sent
|
wparam
,
1
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_CHILDACTIVATE
,
sent
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOMOVE
|
SWP_NOCLIENTMOVE
|
SWP_STATECHANGED
},
{
WM_SIZE
,
sent
|
defwinproc
|
wparam
,
SIZE_RESTORED
},
...
...
@@ -14439,7 +14440,7 @@ static void test_SetWindowRgn(void)
static
const
struct
message
WmShowNormal
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
},
/* win2003 doesn't send it */
...
...
@@ -14452,7 +14453,7 @@ static const struct message WmShowNormal[] = {
static
const
struct
message
WmShow
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
/* win2000 doesn't send it */
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
},
/* win2000 doesn't send it */
{
HCBT_SETFOCUS
,
hook
|
optional
},
/* win2000 doesn't send it */
...
...
@@ -14462,7 +14463,7 @@ static const struct message WmShow[] = {
static
const
struct
message
WmShowNoActivate_1
[]
=
{
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_SHOWNOACTIVATE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_FRAMECHANGED
|
SWP_STATECHANGED
,
0
,
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
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
},
...
...
@@ -14474,7 +14475,7 @@ static const struct message WmShowNoActivate_2[] = {
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_SHOWNOACTIVATE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_FRAMECHANGED
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
,
0
,
SWP_NOACTIVATE
},
{
EVENT_OBJECT_REORDER
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
optional
,
0
,
0
},
/* Win7 sends this. */
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
},
...
...
@@ -14498,7 +14499,7 @@ static const struct message WmShowNoActivate_2[] = {
static
const
struct
message
WmShowNA_1
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
};
...
...
@@ -14512,7 +14513,7 @@ static const struct message WmRestore_1[] = {
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_RESTORE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
},
{
EVENT_OBJECT_REORDER
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
/* win2000 doesn't send it */
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
},
/* win2000 doesn't send it */
{
HCBT_SETFOCUS
,
hook
|
optional
},
/* win2000 doesn't send it */
...
...
@@ -14529,7 +14530,7 @@ static const struct message WmRestore_1[] = {
static
const
struct
message
WmRestore_2
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
/* win2000 doesn't send it */
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
},
/* win2000 doesn't send it */
{
HCBT_SETFOCUS
,
hook
|
optional
},
/* win2000 doesn't send it */
...
...
@@ -14581,7 +14582,7 @@ static const struct message WmRestore_5[] = {
static
const
struct
message
WmHide_1
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
,
0
,
SWP_NOACTIVATE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
,
0
,
SWP_NOACTIVATE
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
{
HCBT_SETFOCUS
,
hook
|
optional
},
/* win2000 sends it */
...
...
@@ -14591,7 +14592,7 @@ static const struct message WmHide_1[] = {
static
const
struct
message
WmHide_2
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
/*|wparam, SWP_HIDEWINDOW|SWP_NOACTIVATE|SWP_NOSIZE|SWP_NOMOVE*/
},
/* win2000 doesn't add SWP_NOACTIVATE */
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
/*|wparam, SWP_HIDEWINDOW|SWP_NOACTIVATE|SWP_NOSIZE|SWP_NOMOVE|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE*/
},
/* win2000 doesn't add SWP_NOACTIVATE */
{
HCBT_ACTIVATE
,
hook
|
optional
},
{
0
}
...
...
@@ -14599,7 +14600,7 @@ static const struct message WmHide_2[] = {
static
const
struct
message
WmHide_3
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
HCBT_SETFOCUS
,
hook
|
optional
},
{
EVENT_OBJECT_FOCUS
,
winevent_hook
|
wparam
|
lparam
|
optional
,
OBJID_CLIENT
,
0
},
...
...
@@ -14609,7 +14610,7 @@ static const struct message WmShowMinimized_1[] = {
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_SHOWMINIMIZED
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
},
{
EVENT_OBJECT_REORDER
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
/* win2000 doesn't send it */
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
},
/* win2000 doesn't send it */
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
},
...
...
@@ -14651,7 +14652,7 @@ static const struct message WmMinimize_3[] = {
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_MINIMIZE
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOACTIVATE
|
SWP_FRAMECHANGED
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
,
0
,
SWP_NOACTIVATE
},
{
EVENT_OBJECT_REORDER
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
{
EVENT_SYSTEM_FOREGROUND
,
winevent_hook
|
wparam
|
lparam
|
optional
,
0
,
0
},
/* Sometimes sent on Win8/10. */
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
},
...
...
@@ -14668,7 +14669,7 @@ static const struct message WmMinimize_3[] = {
static
const
struct
message
WmShowMinNoActivate
[]
=
{
{
HCBT_MINMAX
,
hook
|
lparam
,
0
,
SW_SHOWMINNOACTIVE
},
{
WM_WINDOWPOSCHANGING
,
sent
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
},
{
WM_MOVE
,
sent
|
defwinproc
|
optional
},
{
WM_SIZE
,
sent
|
wparam
|
lparam
|
defwinproc
|
optional
,
SIZE_MINIMIZED
,
0
},
...
...
@@ -14709,7 +14710,7 @@ static const struct message WmShowMaximized_1[] = {
{
WM_GETMINMAXINFO
,
sent
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_FRAMECHANGED
|
SWP_NOCOPYBITS
|
SWP_STATECHANGED
},
{
EVENT_OBJECT_REORDER
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
HCBT_ACTIVATE
,
hook
|
optional
},
/* win2000 doesn't send it */
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
|
optional
,
SWP_NOSIZE
|
SWP_NOMOVE
},
/* win2000 doesn't send it */
{
HCBT_SETFOCUS
,
hook
|
optional
},
/* win2000 doesn't send it */
...
...
@@ -16596,7 +16597,7 @@ static const struct message wm_popup_menu_1[] =
{
HCBT_CREATEWND
,
hook
|
optional
},
/* Win9x doesn't create a window */
{
EVENT_OBJECT_CREATE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_SYSTEM_MENUPOPUPSTART
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
WM_MENUSELECT
,
sent
|
wparam
,
MAKEWPARAM
(
200
,
MF_HILITE
)
},
...
...
@@ -16607,7 +16608,7 @@ static const struct message wm_popup_menu_1[] =
{
EVENT_OBJECT_INVOKED
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_MENU
,
0
},
{
EVENT_SYSTEM_MENUPOPUPEND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
HCBT_DESTROYWND
,
hook
|
optional
},
/* Win9x doesn't create a window */
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_DESTROY
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_UNINITMENUPOPUP
,
sent
|
lparam
,
0
,
0
},
{
WM_MENUSELECT
,
sent
|
wparam
|
lparam
,
MAKEWPARAM
(
0
,
0xffff
),
0
},
...
...
@@ -16634,7 +16635,7 @@ static const struct message wm_popup_menu_2[] =
{
HCBT_CREATEWND
,
hook
},
{
EVENT_OBJECT_CREATE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_SYSTEM_MENUPOPUPSTART
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
WM_MENUSELECT
,
sent
},
/*|wparam, MAKEWPARAM(0,MF_HILITE|MF_POPUP) - XP
...
...
@@ -16647,7 +16648,7 @@ static const struct message wm_popup_menu_2[] =
{
HCBT_CREATEWND
,
hook
|
optional
},
/* Win9x doesn't send it */
{
EVENT_OBJECT_CREATE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_SYSTEM_MENUPOPUPSTART
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
WM_MENUSELECT
,
sent
|
wparam
|
optional
,
MAKEWPARAM
(
100
,
MF_HILITE
)
},
...
...
@@ -16657,12 +16658,12 @@ static const struct message wm_popup_menu_2[] =
{
EVENT_OBJECT_INVOKED
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_MENU
,
0
},
{
EVENT_SYSTEM_MENUPOPUPEND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
HCBT_DESTROYWND
,
hook
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_DESTROY
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_UNINITMENUPOPUP
,
sent
|
lparam
,
0
,
0
},
{
EVENT_SYSTEM_MENUPOPUPEND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
HCBT_DESTROYWND
,
hook
|
optional
},
/* Win9x doesn't send it */
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_DESTROY
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_UNINITMENUPOPUP
,
sent
|
lparam
,
0
,
0
},
{
WM_MENUSELECT
,
sent
|
wparam
|
lparam
,
MAKEWPARAM
(
0
,
0xffff
),
0
},
...
...
@@ -16689,7 +16690,7 @@ static const struct message wm_popup_menu_3[] =
{
HCBT_CREATEWND
,
hook
},
{
EVENT_OBJECT_CREATE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_SYSTEM_MENUPOPUPSTART
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
WM_MENUSELECT
,
sent
},
/*|wparam, MAKEWPARAM(0,MF_HILITE|MF_POPUP) - XP
...
...
@@ -16702,7 +16703,7 @@ static const struct message wm_popup_menu_3[] =
{
HCBT_CREATEWND
,
hook
|
optional
},
/* Win9x doesn't send it */
{
EVENT_OBJECT_CREATE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_SYSTEM_MENUPOPUPSTART
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
WM_MENUSELECT
,
sent
|
wparam
|
optional
,
MAKEWPARAM
(
100
,
MF_HILITE
)
},
...
...
@@ -16712,12 +16713,12 @@ static const struct message wm_popup_menu_3[] =
{
EVENT_OBJECT_INVOKED
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_MENU
,
100
},
{
EVENT_SYSTEM_MENUPOPUPEND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
HCBT_DESTROYWND
,
hook
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_DESTROY
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_UNINITMENUPOPUP
,
sent
|
lparam
,
0
,
0
},
{
EVENT_SYSTEM_MENUPOPUPEND
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
OBJID_CLIENT
,
0
},
{
HCBT_DESTROYWND
,
hook
|
optional
},
/* Win9x doesn't send it */
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
EVENT_OBJECT_DESTROY
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_UNINITMENUPOPUP
,
sent
|
lparam
,
0
,
0
},
{
WM_MENUSELECT
,
sent
|
wparam
|
lparam
,
MAKEWPARAM
(
0
,
0xffff
),
0
},
...
...
@@ -18047,7 +18048,7 @@ static const struct message WmSetParentSeq_1[] = {
static
const
struct
message
WmSetParentSeq_2
[]
=
{
{
WM_SHOWWINDOW
,
sent
|
wparam
,
0
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_HIDE
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_HIDEWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
HCBT_SETFOCUS
,
hook
|
optional
},
{
WM_NCACTIVATE
,
sent
|
wparam
|
optional
,
0
},
...
...
@@ -18070,7 +18071,7 @@ static const struct message WmSetParentSeq_2[] = {
{
EVENT_OBJECT_LOCATIONCHANGE
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
WM_SHOWWINDOW
,
sent
|
wparam
,
1
},
{
WM_WINDOWPOSCHANGING
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
|
winevent_hook_todo
,
0
,
0
},
{
EVENT_OBJECT_SHOW
,
winevent_hook
|
wparam
|
lparam
,
0
,
0
},
{
WM_WINDOWPOSCHANGED
,
sent
|
wparam
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
},
{
0
}
};
...
...
dlls/win32u/window.c
View file @
93748f72
...
...
@@ -3448,9 +3448,17 @@ BOOL set_window_pos( WINDOWPOS *winpos, int parent_x, int parent_y )
goto
done
;
if
(
winpos
->
flags
&
SWP_HIDEWINDOW
)
{
NtUserNotifyWinEvent
(
EVENT_OBJECT_HIDE
,
winpos
->
hwnd
,
0
,
0
);
NtUserHideCaret
(
winpos
->
hwnd
);
}
else
if
(
winpos
->
flags
&
SWP_SHOWWINDOW
)
{
NtUserNotifyWinEvent
(
EVENT_OBJECT_SHOW
,
winpos
->
hwnd
,
0
,
0
);
NtUserShowCaret
(
winpos
->
hwnd
);
}
if
(
!
(
winpos
->
flags
&
(
SWP_NOACTIVATE
|
SWP_HIDEWINDOW
)))
{
...
...
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