View Full Version : Clearing selection from single-selection listbox.

06-09-2005, 11:40 AM

Anyone know off hand how to unselect an item from a single-selection listbox? I had assumed that by using CtrlSetCurSel() and passing in a string that was NOT in the list it would remove the selection, but it didn't work and I see now that the existing functionality actually makes sense.

Regardless, I still need to be able to unselect all items in a listbox. Any ideas? I've tried resetting the contents of the list but that didn't appear to work either.