From 3a2de5fc7e9faf5ac8b0afbf04abea53888b7583 Mon Sep 17 00:00:00 2001 From: Reece H. Dunn Date: Fri, 25 Jan 2008 01:06:05 +0000 Subject: [PATCH] comctl32: Vista sends an unidentified message when destroying datetime and monthcal windows. --- dlls/comctl32/tests/datetime.c | 4 ++++ dlls/comctl32/tests/monthcal.c | 5 +++++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/dlls/comctl32/tests/datetime.c b/dlls/comctl32/tests/datetime.c index d13abc6..8f89729 100644 --- a/dlls/comctl32/tests/datetime.c +++ b/dlls/comctl32/tests/datetime.c @@ -23,6 +23,8 @@ #include "wine/test.h" #include "msg.h" +#define WM_UNKNOWN_VISTA1 0x0090 + #define expect(EXPECTED, GOT) ok((GOT)==(EXPECTED), "Expected %d, got %ld\n", (EXPECTED), (GOT)) #define expect_unsuccess(EXPECTED, GOT) ok((GOT)==(EXPECTED), "Expected %d(unsuccessful), got %ld(successful)\n", (EXPECTED), (GOT)) @@ -112,6 +114,7 @@ static const struct message test_dtm_set_range_swap_min_max_seq[] = { static const struct message test_dtm_set_and_get_system_time_seq[] = { { DTM_SETSYSTEMTIME, sent|wparam, 0x00000001 }, + { WM_UNKNOWN_VISTA1, sent|optional }, /* Vista */ { WM_DESTROY, sent|wparam|lparam, 0x00000000, 0x00000000 }, { WM_NCDESTROY, sent|wparam|lparam, 0x00000000, 0x00000000 }, { DTM_SETSYSTEMTIME, sent|wparam, 0x00000001 }, @@ -125,6 +128,7 @@ static const struct message test_dtm_set_and_get_system_time_seq[] = { }; static const struct message destroy_window_seq[] = { + { WM_UNKNOWN_VISTA1, sent|optional }, /* Vista */ { WM_DESTROY, sent|wparam|lparam, 0x00000000, 0x00000000 }, { WM_NCDESTROY, sent|wparam|lparam, 0x00000000, 0x00000000 }, { 0 } diff --git a/dlls/comctl32/tests/monthcal.c b/dlls/comctl32/tests/monthcal.c index 7fe2bd7..50ad228 100644 --- a/dlls/comctl32/tests/monthcal.c +++ b/dlls/comctl32/tests/monthcal.c @@ -32,6 +32,8 @@ #include #include "msg.h" +#define WM_UNKNOWN_VISTA1 0x0090 + #define expect(expected, got) ok(expected == got, "Expected %d, got %d\n", expected, got); #define NUM_MSG_SEQUENCES 2 @@ -280,6 +282,7 @@ static const struct message destroy_monthcal_parent_msgs_seq[] = { /* expected message sequence for child*/ static const struct message destroy_monthcal_child_msgs_seq[] = { + { WM_UNKNOWN_VISTA1, sent|optional }, /* Vista */ { WM_SHOWWINDOW, sent|wparam|lparam, 0, 0}, { WM_WINDOWPOSCHANGING, sent|wparam, 0}, { WM_WINDOWPOSCHANGED, sent|wparam, 0}, @@ -289,6 +292,7 @@ static const struct message destroy_monthcal_child_msgs_seq[] = { }; static const struct message destroy_monthcal_multi_sel_style_seq[] = { + { WM_UNKNOWN_VISTA1, sent|optional }, /* Vista */ { WM_DESTROY, sent|wparam|lparam, 0, 0}, { WM_NCDESTROY, sent|wparam|lparam, 0, 0}, { 0 } @@ -296,6 +300,7 @@ static const struct message destroy_monthcal_multi_sel_style_seq[] = { /* expected message sequence for parent window*/ static const struct message destroy_parent_seq[] = { + { WM_UNKNOWN_VISTA1, sent|optional }, /* Vista */ { WM_WINDOWPOSCHANGING, sent|wparam, 0}, { WM_WINDOWPOSCHANGED, sent|wparam, 0}, { WM_NCACTIVATE, sent|wparam|lparam, 0, 0}, -- 1.5.3.5