What extended style do i have to set so the user can change the sort of the SysListView32 control??? I mean, what to i need to specifiy that the user can click on a column header and the list is re-sorted, concerning to the selected column?

Dominik
Posted on 2004-10-18 13:27:34 by Dom
u have to handle LVN_COLUMNCLICK, and then utilize LVM_SORTITEMS
make sure u use unique handles to identify items, and store them in LVITEM.lParam, since the index LVITEM.iItem will change every time an item is moved due to sorting
Posted on 2004-10-18 13:33:31 by comrade
Windows provides a sort function. You have to code your own "compare and exchange" function.
There are some good examples about listview sorting.
If you want I can post one
Posted on 2004-10-18 15:41:26 by greenant
Would be nice, greenant....I always love source codes 8)
Dominik
Posted on 2004-10-20 16:25:31 by Dom