typedef struct tagDELETEITEMSTRUCT { /* deli */
UINT CtlType;
UINT CtlID;
UINT itemID;
HWND hwndItem;
DWORD itemData;
} DELETEITEMSTRUCT;
The DELETEITEMSTRUCT structure describes a deleted owner-drawn list-box or combo-box item. When an item is removed from the list box or combo box or when the list box or combo box is destroyed, Windows sends the WM_DELETEITEM message to the owner for each deleted item. The lParam parameter of the message contains a pointer to this structure.
CtlType
Contains ODT_LISTBOX (which specifies an owner-drawn list box) or ODT_COMBOBOX (which specifies an owner-drawn combo box).
CtlID
Contains the control identifier for the list box or combo box.
itemID
Contains the index of the item in the list box or combo box being removed.
hwndItem
Contains the window handle of the control.
itemData
Contains the value passed to the control in the lParam parameter of the LB_INSERTSTRING, LB_ADDSTRING, CB_INSERTSTRING, or CB_ADDSTRING message when the item was added to the list box.