WM_DELETEITEM
idCtl = wParam; /* control identifier */
lpdis = (const DELETEITEMSTRUCT FAR*) lParam; /* structure */
The WM_DELETEITEM message is sent to the owner of an owner-drawn list box or combo box when the list box or combo box is destroyed or when items are removed by the LB_DELETESTRING, LB_RESETCONTENT, CB_DELETESTRING, or CB_RESETCONTENT message.
idCtl
Value of wParam. Specifies the identifier of the control that sent the WM_DELETEITEM message.
lpdis
Value of lParam. Points to a DELETEITEMSTRUCT structure that contains information about the item deleted from the list box. The DELETEITEMSTRUCT structure has the following form:
typedef struct tagDELETEITEMSTRUCT { /* deli */
UINT CtlType;
UINT CtlID;
UINT itemID;
HWND hwndItem;
DWORD itemData;
} DELETEITEMSTRUCT;
An application should return TRUE if it processes this message.
CB_DELETESTRING, CB_RESETCONTENT, LB_DELETESTRING, LB_RESETCONTENT