[PATCH 21/27] user32/tests: Fix test_EndDialog() message sequences to support WinEvents.