Jump to content

LM_DELETEITEM

From EDM2
Revision as of 02:16, 28 April 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:LM_DELETEITEM}} This message deletes an item from the list box control. ==Syntax== <pre> param1 SHORT sItemIndex; Item index.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ==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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.