How to control the sort property of a CListCtrl controler?
-
In the program ,I use a CListCtrl controler, sometimes I want to set the sort property enable or disable ,how to do it?
bghuang wrote: CListCtrl controle Look for CListCtrl::ModifyStyle(....) for values LVS_SORTASCENDING : for sorting in ASCENDING order LVS_SORTDESCENDING : for sorting in DESCENDING order and remove both property to disable sort :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
bghuang wrote: CListCtrl controle Look for CListCtrl::ModifyStyle(....) for values LVS_SORTASCENDING : for sorting in ASCENDING order LVS_SORTDESCENDING : for sorting in DESCENDING order and remove both property to disable sort :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
I would try to use
CListCtrl::ModifyStyle
too, but by playing with the style LVS_NOSORTHEADER instead.Stlan wrote: by playing with the style LVS_NOSORTHEADER instead. Correct!, My Nose is not working fine TODAY, I got cold from yesterday.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
Stlan wrote: by playing with the style LVS_NOSORTHEADER instead. Correct!, My Nose is not working fine TODAY, I got cold from yesterday.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
bghuang wrote: Thanks Mr. Stlan deserve that more then me:)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta