{WM_CHILDACTIVATE,sent},/* in the 1st MDI child */
/* Deactivate 2nd MDI child */
{WM_NCACTIVATE,sent|defwinproc|optional},/* in the 2nd MDI child */
{WM_MDIACTIVATE,sent|defwinproc|optional},/* in the 2nd MDI child */
{WM_CREATE,hook},
{WM_NCACTIVATE,sent|wparam|defwinproc,0},/* in the 2nd MDI child */
{WM_MDIACTIVATE,sent|defwinproc},/* in the 2nd MDI child */
{HCBT_MINMAX,hook|lparam,0,SW_MAXIMIZE},
/* Preparing for maximize and maximaze the 1st MDI child */
{WM_GETMINMAXINFO,sent|defwinproc|optional},/* in the 1st MDI child */
{WM_WINDOWPOSCHANGING,sent|wparam|defwinproc|optional,SWP_FRAMECHANGED|SWP_STATECHANGED},/* in the 1st MDI child */
{WM_GETMINMAXINFO,sent|defwinproc|optional},/* in the 1st MDI child */
{WM_NCCALCSIZE,sent|wparam|defwinproc|optional,1},/* in the 1st MDI child */
{WM_CHILDACTIVATE,sent|defwinproc|optional},/* in the 1st MDI child */
{WM_WINDOWPOSCHANGED,sent|defwinproc|optional},/* in the 1st MDI child */
{WM_MOVE,sent|defwinproc|optional},/* in the 1st MDI child */
{WM_SIZE,sent|defwinproc|optional},/* in the 1st MDI child */
{WM_GETMINMAXINFO,sent|defwinproc},/* in the 1st MDI child */
{WM_WINDOWPOSCHANGING,sent|wparam|defwinproc,SWP_FRAMECHANGED|SWP_STATECHANGED},/* in the 1st MDI child */
{WM_NCCALCSIZE,sent|wparam|defwinproc,1},/* in the 1st MDI child */
{WM_CHILDACTIVATE,sent|defwinproc},/* in the 1st MDI child */
{WM_WINDOWPOSCHANGED,sent|wparam|defwinproc,SWP_FRAMECHANGED|SWP_NOSIZE|SWP_NOMOVE|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE|0x8000},/* in the 1st MDI child */
{WM_SIZE,sent|defwinproc|wparam,SIZE_MAXIMIZED},/* in the 1st MDI child */
/* Lock redraw 2nd MDI child */
{WM_SETREDRAW,sent|defwinproc|optional},/* in the 2nd MDI child */
{WM_WINDOWPOSCHANGING,sent|wparam|defwinproc|optional,SWP_FRAMECHANGED|SWP_NOACTIVATE|SWP_NOSIZE|SWP_NOMOVE},/* in the 2nd MDI child */
{WM_NCCALCSIZE,sent|wparam|defwinproc|optional,1},/* in the 2nd MDI child */
{WM_WINDOWPOSCHANGED,sent|defwinproc|optional},/* in the 2nd MDI child */
{WM_CREATE,hook},
{WM_SETREDRAW,sent|wparam|defwinproc,0},/* in the 2nd MDI child */
{HCBT_MINMAX,hook|lparam,0,SW_NORMALNA},
/* Restore 2nd MDI child */
{WM_WINDOWPOSCHANGING,sent|wparam|defwinproc|optional,SWP_NOACTIVATE|SWP_FRAMECHANGED|SWP_SHOWWINDOW|SWP_STATECHANGED},/* in the 2nd MDI child */
{WM_GETMINMAXINFO,sent|defwinproc|optional},/* in the 2nd MDI child */
{WM_NCCALCSIZE,sent|wparam|defwinproc|optional,1},/* in the 2nd MDI child */
{WM_WINDOWPOSCHANGED,sent|defwinproc|optional},/* in the 2nd MDI child */
{WM_MOVE,sent|defwinproc|optional},/* in the 2nd MDI child */
{WM_SIZE,sent|defwinproc|optional},/* in the 2nd MDI child */
{WM_WINDOWPOSCHANGING,sent|wparam|defwinproc,SWP_SHOWWINDOW|SWP_NOACTIVATE|SWP_FRAMECHANGED|0x8000},/* in the 2nd MDI child */
{WM_NCCALCSIZE,sent|wparam|defwinproc,1},/* in the 2nd MDI child */
{EVENT_OBJECT_SHOW,winevent_hook|wparam|lparam,0,0},/* in the 2nd MDI child */
{WM_WINDOWPOSCHANGED,sent|wparam|defwinproc,SWP_SHOWWINDOW|SWP_NOACTIVATE|SWP_FRAMECHANGED|SWP_NOSIZE|SWP_NOMOVE|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE|0x8000},/* in the 2nd MDI child */
{WM_SIZE,sent|defwinproc|wparam,SIZE_RESTORED},/* in the 2nd MDI child */
{EVENT_OBJECT_LOCATIONCHANGE,winevent_hook|wparam|lparam,0,0},/* in the 2nd MDI child */
/* Redraw 2nd MDI child */
{WM_SETREDRAW,sent|defwinproc|optional},/* in the 2nd MDI child */
{WM_WINDOWPOSCHANGING,sent|wparam,SWP_NOACTIVATE|SWP_NOSIZE|SWP_FRAMECHANGED|SWP_NOMOVE},/* in the MDI frame */
{WM_NCCALCSIZE,sent|wparam,1},/* in the MDI frame */
{WM_WINDOWPOSCHANGED,sent},/* in the MDI frame */
{WM_WINDOWPOSCHANGING,sent|wparam|defwinproc|optional,SWP_NOACTIVATE|SWP_NOSIZE|SWP_NOMOVE},/* in the 1st MDI child */
{WM_NCACTIVATE,sent|wparam|defwinproc|optional,1},/* in the 1st MDI child */
{WM_SETVISIBLE,hook},
{WM_KILLFOCUS,sent|defwinproc|optional},/* in the 2nd MDI child */
{WM_IME_SETCONTEXT,sent|wparam|optional,0},/* in MDI client */
{WM_IME_SETCONTEXT,sent|wparam|optional,1},
{WM_SETREDRAW,sent|wparam|defwinproc,1},/* in the 2nd MDI child */
/* Redraw MDI frame */
{WM_WINDOWPOSCHANGING,sent|wparam,SWP_NOACTIVATE|SWP_FRAMECHANGED|SWP_NOSIZE|SWP_NOMOVE},/* in MDI frame */
{WM_NCCALCSIZE,sent|wparam,1},/* in MDI frame */
{WM_WINDOWPOSCHANGED,sent|wparam,SWP_NOACTIVATE|SWP_FRAMECHANGED|SWP_NOSIZE|SWP_NOMOVE|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE},/* in MDI frame */
{EVENT_OBJECT_LOCATIONCHANGE,winevent_hook|wparam|lparam,0,0},/* in MDI frame */
{EVENT_OBJECT_LOCATIONCHANGE,winevent_hook|wparam|lparam,0,0},/* in the 1st MDI child */
{WM_WINDOWPOSCHANGING,sent|wparam|defwinproc,SWP_NOACTIVATE|SWP_NOSIZE|SWP_NOMOVE},/* in the 1st MDI child */
{WM_NCACTIVATE,sent|wparam|defwinproc,1},/* in the 1st MDI child */
{HCBT_SETFOCUS,hook},
{WM_KILLFOCUS,sent|defwinproc},/* in the 2nd MDI child */
{WM_IME_SETCONTEXT,sent|wparam|defwinproc,0},/* in the 1st MDI child */
{WM_IME_SETCONTEXT,sent|wparam,1},/* in MDI client */