Module: wine Branch: master Commit: fb4545847ed6a76f615b0b16c16e277874eba571 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fb4545847ed6a76f615b0b16c1...
Author: Sergey Guralnik serhio@etersoft.ru Date: Tue Jul 3 12:30:49 2012 +0400
user32: Add test for ComboBox repositioning behavior.
---
dlls/user32/tests/msg.c | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index 27a5476..3102cf2 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -5720,6 +5720,21 @@ static const struct message WmKeyDownComboSeq[] = { 0 } };
+static const struct message WmSetPosComboSeq[] = +{ + { WM_WINDOWPOSCHANGING, sent }, + { WM_NCCALCSIZE, sent|wparam, TRUE }, + { WM_CHILDACTIVATE, sent }, + { WM_WINDOWPOSCHANGED, sent }, + { WM_MOVE, sent|defwinproc }, + { WM_SIZE, sent|defwinproc|wparam, SIZE_RESTORED }, + { WM_WINDOWPOSCHANGING, sent|defwinproc }, + { WM_NCCALCSIZE, sent|defwinproc|wparam, TRUE }, + { WM_WINDOWPOSCHANGED, sent|defwinproc }, + { WM_SIZE, sent|defwinproc|wparam, SIZE_RESTORED }, + { 0 } +}; + static WNDPROC old_combobox_proc;
static LRESULT CALLBACK combobox_hook_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) @@ -5807,6 +5822,10 @@ static void test_combobox_messages(void) log_all_parent_messages--; ok_sequence(WmKeyDownComboSeq, "WM_KEYDOWN/VK_DOWN on a ComboBox", FALSE);
+ flush_sequence(); + SetWindowPos(combo, 0, 10, 10, 120, 130, SWP_NOZORDER); + ok_sequence(WmSetPosComboSeq, "repositioning messages on a ComboBox", TRUE); + DestroyWindow(combo); DestroyWindow(parent); }