Hi,
I’ve been using a ListBox with style LB_SINGLE to select a single input item but now need to be more flexible. I’d like to be able to switch the mode between LB_SINGLE and LB_EXTENDED, as it will sometimes be appropriate to select a single input item and sometimes several. It appears though that this can’t be done and the mode can only be set on creation - changes made with SetWindowStyle didn’t affect the mode.
So far I’ve come up with either using 2 ListBox widgets with different selection modes that I’d have to keep in sync and switch on/off or one LB_EXTENDED style ListBox where I’d have to try to mimic single selection mode at times when extended selection isn’t appropriate. Both of these possible solutions seem rather clunky. Does anyone know of any of the other list or tree widgets that would allow me to switch the mode?
Thanks,
Jill Holliday