Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/tests/combo.c:
DestroyWindow(combo);
}
+static void get_selected_value(HWND combo, char* selected) +{
- int index;
- selected[0] = 0;
- index = SendMessageA(combo, CB_GETCURSEL, 0, 0);
- SendMessageA(combo, CB_GETLBTEXT, index, (LPARAM)selected);
+}
+static void wait_with_messageloop(DWORD ms)
This works but I would rather copy flush_events() from other files and then do a Sleep(2000) and a flush_events(). This way, flush_events may be used for future tests while wait_with_messageloop() is for this test only.