7 Jan
2024
7 Jan
'24
8:56 p.m.
Nikolay Sivov (@nsivov) 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 test_combo_keypresses(BOOL sort) +{ + HWND combo = create_combobox(CBS_DROPDOWNLIST | (sort ? CBS_SORT : 0));
If this really needs a function argument, which is questionable, it might as well use style bit directly as that argument. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4794#note_56844