CComboBox not selecting CurSel when dropped down
问题 I have an alphabetically sorted combobox in a dialog. This combo contains multiple strings, but some are duplicated with different cases. i.e. we have an 'On' and an 'ON', an 'Off' and an 'OFF'. This may seem redundant but there is a reason, although this is not important right now. The duplicates obviously appear one after the other in the list, with the capitalized strings first. i.e.: OFF Off ON On When the user selects the 'On' (lower case), the correct index is set as CurSel and the