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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Control Box

Status
Not open for further replies.

FORAND

Programmer
May 26, 2003
64
CA

Hello!

I've manage to get my List Control box to work just fine. But I can't get it to sort my item when i click on the header.. How can I get my items sorted?

Thanks


Pierre
 
Header click and sorting isn't an automatic thingie, you "manually" have to

1) Handle the click.
2) Perform the sort


1) Let the class wizard map the LVN_COLUMNCLICK notification to a method, OnColumnclickMyListControl

2) Do the sorting in the method. See CListCtrl::SortItems documentation in MSDN.


/Per
Nerdy signatures are as lame as the inconsistent stardates of STTNG.
 
I've seen the doc on MSDN, and it does'nt quite helps me...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top