31 Jul
2024
31 Jul
'24
1:20 p.m.
Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/tests/listview.c:
+ CHAR buffer[256]; + CHAR col_names[][2] = { "1", "2" }; + HWND hwndListView = create_listview_control(LVS_REPORT); + int prev_value; + + GetClientRect(hwndparent, &rcClient); + + lvc.mask = LVCF_TEXT | LVCF_WIDTH | LVCF_SUBITEM; + lvc.pszText = col_names[0]; + lvc.cx = rcClient.right / 2; + lvc.iSubItem = 0; + SendMessageA(hwndListView, LVM_INSERTCOLUMNA, 0, (LPARAM) &lvc); + + lvc.pszText = col_names[1]; + lvc.iSubItem = 1; + lvc.cx = rcClient.right / 2; You can remove this line.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6160#note_77407