SECListBoxEditor::DoDelete
BOOLSECListBoxEditor::DoDelete(void)
Deletes the currently selected item from the listbox.
Defined in: lstbxedt.cpp
Return Value
Nonzero if successful, otherwise 0. For list boxes without the LBE_NOTRAILBLANK flag set, this method will return 0 if the last (blank) item is selected when this method is called (it cannot be deleted).
Comments
For list boxes with the LBS_MULTIPLESEL or LBS_EXTENDEDSEL style, this method will delete all selected items. One difference in behavior for list boxes with the LBS_MULTIPLESEL or LBS_EXTENDEDSEL flag if the delete operation completes and returns TRUE, there will be no selected items in the list box. This differs from listboxes without the LBS_MULTIPLESEL or LBS_EXTENDEDSEL flag, where the same index position will remain selected, if an item exists at that index after the deletion.
See Also