I have a CListBox, and I want to have a Move Up/Move Down buttons, which move the currently selected item up or down.
Right now I think the only solution is to delete the item and then insert it the new position.
Is there a more efficient way to do it?
Here is a snippet I made 10 years ago. It uses delete and add to switch positions, but I think that's the only way.