LM_DELETEITEM
Appearance
This message deletes an item from the list box control.
Syntax
param1 SHORT sItemIndex; /* Item index. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- sItemIndex (SHORT) - input
- Item index.
- The zero-based index of the item to be deleted.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
Returns
- sItemsLeft (SHORT) - return
- Number remaining.
- The number of items in the list after the item is deleted.
Remarks
The list box control window procedure responds to this message by deleting the indexed item of the list box and by setting sItemsLeft to the count of the items in the list after the item is deleted.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set sItemsLeft to the default value of 0.