I have the following scenario:
There is a dialog template with a listbox control.
The listbox has style bit "LBS_SORT" set.
Now I want to decide AT RUN TIME if the listbox should be created with or without LBS_SORT.
I've found out that modifying the style after creation doesn't help.
I think the style must be changed before the control is created.
Any ideas how to do this?
PS: don't tell me to overwrite PreCreateWindow() of the control class. The dialog must change the control. Not the control itself.