22 Oct
Posted by support as Win32/MFC 2,857 views, 0 Comments
How to sort the items of a CListCtrl or CListView(CReportView)?
First, when you add items, you need to call SetItemData to attach an data structure(an integer or a pointer) to the item.
Then, define a callback sort function.
int CALLBACK SortFunc(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
And here, the prarameters lParam1 and lParam2 are the data structure you [...]