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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
udibsAuthor Commented:
LVN_COLUMNCLICK
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

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
mikeblasCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
udibsAuthor Commented:
Here is for the effort.
already solved the problem.
Thanks anyway.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.