Changing a CComboBox style to CBS_SORT
Posted on 2002-07-23
I'm trying to change the style of a CComboBox after it has been created.
I want to add & remove the CBS_SORT style.
I use the following code:
But none of these lines seems to work.
Is the CBS_SORT style unchangeable after the combo has been created ?
If not, I guess I will have to implement an owner-draw combo-box, and override the CompareItem method.
Does anyone have an example of a DrawItem function for a regular combo-box ?
Thanks for your help.