Link to home
Start Free TrialLog in
Avatar of udibs
udibs

asked on

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.
Avatar of V_Bapat
V_Bapat
Flag of India image

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

Oooops ! It is HDN_ITEMCLICK
Avatar of udibs
udibs

ASKER

LVN_COLUMNCLICK
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

Avatar of udibs

ASKER

Sorry Mike,
The code contains lots of irrelevant stuff
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of udibs

ASKER

Here is for the effort.
already solved the problem.
Thanks anyway.