Hello everybody!
I have a sortable listview control (ie, can click on any column and sort
asc/dec) however I would like to include a small icon, a 'triangle' or
'arrow' indicating that column the sort is on. This is common behaviour
almost everywhere, including the windows explorer.
I have searched everywhere and found little help... does anyone know how to
do this? or if it is possible at all?
Thanks a million!
Greg
Claes Bergefall - 29 Sep 2004 08:02 GMT
Add your images to an imagelist and then use
HDM_SETIMAGELIST to assign it to the
header. Use LVM_GETHEADER to
get a handle to the header
Once you have the imagelist in place use
HDM_SETITEM to specify which image to
show (once again, use LVM_GETHEADER
to get a handle to the header).
Note that if you set any of the imagelists (small or large)
for the listview it will forward those to the header, so
you'll have to reapply your own imagelist to the header
in that case.
/claes
> Hello everybody!
>
[quoted text clipped - 8 lines]
> Thanks a million!
> Greg