Link to home
Start Free TrialLog in
Avatar of rw8
rw8

asked on

CListBox disable/enable sorting

Hi can anyone show me the code for disable/enable the sorting function for a CListBox at anytime? Also, is it possible to make it sort in ascending sort or descending order?

i've tried these but it's not working.

m_ctlList.ModifyStyleEx(NULL,LBS_SORT); //to enable sorting
 
ASKER CERTIFIED SOLUTION
Avatar of skibud2
skibud2

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 rw8
rw8

ASKER

Thanks it's excelletn!