Zhiyi Zhang (@zhiyi) commented about dlls/comctl32/tests/listview.c:
- for (int i = 0; i < 100; i++)
- {
lvi.mask = LVIF_TEXT;lvi.iItem = i;lvi.iSubItem = 0;lvi.pszText = buffer;sprintf(buffer, "%d", rand() % 100);SendMessageA(list_view, LVM_INSERTITEMA, 0, (LPARAM) &lvi);lvi.iSubItem = 1;sprintf(buffer, "%d", rand() % 100);SendMessageA(list_view, LVM_SETITEMTEXTA, i, (LPARAM) &lvi);- }
- SendMessageA(list_view, LVM_SORTITEMSEX, (WPARAM) list_view, (LPARAM) test_CallBackCompareEx);
Let's remove the space after (WPARAM) and (LPARAM).