I Need to make the CListCtrl non sortable at run time
-
Hi Dear, I need to make the report view of the list control non sortable( Disable Sorting) at run time. But i could not find out any API. I tried to set LVS_NOSORTHEADER in PreCreateWindow() but it is making the list view non sortable all the time. I need to make it Non soratble only at run time. Like if I click on a particular node in a tree view then the list view dispalyed corrresponding to that should be non sortable. Can Any body help me
-
Hi Dear, I need to make the report view of the list control non sortable( Disable Sorting) at run time. But i could not find out any API. I tried to set LVS_NOSORTHEADER in PreCreateWindow() but it is making the list view non sortable all the time. I need to make it Non soratble only at run time. Like if I click on a particular node in a tree view then the list view dispalyed corrresponding to that should be non sortable. Can Any body help me
1.first, take a separate application for test. 2.take two list controls. 3.in properties, enable sort for one control. 4.assign a member variables to both.(say m_l1,m_l2) 5.try m_l1.GetProperty() and m_l2.GetProperty(); 6.see the difference. 7.then appply the same for the required control using SetProperty();