sorting a CListCtrl

I have a window that keeps a CListCtrl object.
I need to be able to sort every column in the list.
what i need to know is what kind of message does a column header
send to its parent when klicked, and how do I know which column sent it.
thanks.
udibsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mikeblasConnect With a Mentor Commented:
The "irrelevant" parts of the sample load data into the box. But, if you insist: you can find several sorting examples at codeguru.com.  Look at:

http://www.codeguru.com/listview/index.shtml

and check out the "Sorting" subtopic for references to appropriate samples.

..B ekiM
0
 
V_BapatCommented:
When the user clicks on a header, HDN_CLICK is sent. If you are looking for some code, go to codeguru.developer.com/listview

0
 
V_BapatCommented:
Oooops ! It is HDN_ITEMCLICK
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
udibsAuthor Commented:
LVN_COLUMNCLICK
0
 
mikeblasCommented:
see the APIBROW.ZIP sample at http://www.nwlink.com/~mikeblas/samples/ for an app that shows a list and lets you sort its content by any column.

(Note: my samples will soon move to http://www.mooseboy.com/ )

..B ekiM

0
 
udibsAuthor Commented:
Sorry Mike,
The code contains lots of irrelevant stuff
0
 
udibsAuthor Commented:
Here is for the effort.
already solved the problem.
Thanks anyway.
0
All Courses

From novice to tech pro — start learning today.