user32/tests: Add optional restore sequence for Vista.

This commit is contained in:
Alexandre Julliard 2009-03-13 11:29:53 +01:00
parent 2dc7fc2916
commit 0caa310c37

View File

@ -590,10 +590,34 @@ static const struct message WmShowMinOverlappedSeq[] = {
{ WM_GETTEXT, sent|defwinproc|optional }, { WM_GETTEXT, sent|defwinproc|optional },
{ WM_ACTIVATE, sent }, { WM_ACTIVATE, sent },
{ WM_ACTIVATEAPP, sent|wparam, 0 }, { WM_ACTIVATEAPP, sent|wparam, 0 },
/* Vista sometimes restores the window right away... */ /* Vista sometimes restores the window right away... */
{ WM_SYSCOMMAND, sent|optional|wparam, SC_RESTORE }, { WM_SYSCOMMAND, sent|optional|wparam, SC_RESTORE },
{ HCBT_SYSCOMMAND, hook|optional|wparam, SC_RESTORE }, { HCBT_SYSCOMMAND, hook|optional|wparam, SC_RESTORE },
{ HCBT_MINMAX, hook|optional|lparam, 0, SW_RESTORE }, { HCBT_MINMAX, hook|optional|lparam, 0, SW_RESTORE },
{ WM_QUERYOPEN, sent|optional },
{ WM_WINDOWPOSCHANGING, sent|optional|wparam, SWP_FRAMECHANGED|SWP_STATECHANGED },
{ WM_GETMINMAXINFO, sent|optional|defwinproc },
{ WM_NCCALCSIZE, sent|optional|wparam, TRUE },
{ HCBT_ACTIVATE, hook|optional },
{ WM_ACTIVATEAPP, sent|optional|wparam, 1 },
{ WM_NCACTIVATE, sent|optional },
{ WM_GETTEXT, sent|optional },
{ WM_ACTIVATE, sent|optional|wparam, 1 },
{ HCBT_SETFOCUS, hook|optional },
{ WM_IME_SETCONTEXT, sent|wparam|defwinproc|optional, 1 },
{ WM_IME_NOTIFY, sent|wparam|defwinproc|optional, 2 },
{ WM_SETFOCUS, sent|optional },
{ WM_NCPAINT, sent|optional },
{ WM_GETTEXT, sent|defwinproc|optional },
{ WM_ERASEBKGND, sent|optional },
{ WM_WINDOWPOSCHANGED, sent|optional|wparam, SWP_FRAMECHANGED|SWP_STATECHANGED },
{ WM_MOVE, sent|defwinproc|optional },
{ WM_SIZE, sent|defwinproc|optional|wparam, SIZE_RESTORED },
{ WM_ACTIVATE, sent|optional|wparam, 1 },
{ WM_SYSCOMMAND, sent|optional|wparam, SC_RESTORE },
{ HCBT_SYSCOMMAND, hook|optional|wparam, SC_RESTORE },
{ WM_PAINT, sent|optional }, { WM_PAINT, sent|optional },
{ WM_NCPAINT, sent|beginpaint|optional }, { WM_NCPAINT, sent|beginpaint|optional },
{ WM_ERASEBKGND, sent|beginpaint|optional }, { WM_ERASEBKGND, sent|beginpaint|optional },
@ -8229,6 +8253,7 @@ static const struct message ScrollWindowPaint1[] = {
{ WM_NCPAINT, sent|beginpaint|optional }, { WM_NCPAINT, sent|beginpaint|optional },
{ WM_GETTEXT, sent|beginpaint|optional }, { WM_GETTEXT, sent|beginpaint|optional },
{ WM_GETTEXT, sent|beginpaint|optional }, { WM_GETTEXT, sent|beginpaint|optional },
{ WM_GETTEXT, sent|beginpaint|optional },
{ WM_ERASEBKGND, sent|beginpaint|optional }, { WM_ERASEBKGND, sent|beginpaint|optional },
{ 0 } { 0 }
}; };