Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort On A ListCtrl

Status
Not open for further replies.

sweep123

Technical User
May 1, 2003
185
GB
Quick question, I have a ListCtrl being updated every second. Now if I turn off the Timer how can I sort the data under each header.
I have enabled the sort property (Ascending), but how do I see the effects when I click the ListCtrl header I wish to sort?


Sweep
 
You have to write a sort function and then pass it as an argument to the SortItem member of CListCtrl.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top