19 Nov
2024
19 Nov
'24
9:04 a.m.
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. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4794#note_87979