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.
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.
When the user clicks on a header, HDN_CLICK is sent. If you are looking for some code, go to codeguru.developer.com/lis tview
Oooops ! It is HDN_ITEMCLICK
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
(Note: my samples will soon move to http://www.mooseboy.com/ )
..B ekiM
ASKER
Sorry Mike,
The code contains lots of irrelevant stuff
The code contains lots of irrelevant stuff
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Here is for the effort.
already solved the problem.
Thanks anyway.
already solved the problem.
Thanks anyway.