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
Dominik
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
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
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
There are some good examples about listview sorting.
If you want I can post one
Would be nice, greenant....I always love source codes 8)
Dominik
Dominik