1. Your code is a little strange: what for are you using
Code:
_asm nop;
2. To delete items in a listbox with multi-selection you have to call CListBox::GetSelItems , then sort the item indexes in a buffer and then delete selected items in a loop beginning from the max index.