Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

WM_DELETEITEM message

Sent to the owner of a 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. The system sends a WM_DELETEITEM message for each deleted item. The system sends the WM_DELETEITEM message for any deleted list box or combo box item with nonzero item data.


WM_DELETEITEM

    WPARAM wParam;
    LPARAM lParam; 

Parameters

wParam

Specifies the identifier of the control that sent the WM_DELETEITEM message.

lParam

Pointer to a DELETEITEMSTRUCT structure that contains information about the item deleted from a list box.

Return value

An application should return TRUE if it processes this message.

Remarks

Microsoft Windows NT and later: Windows sends a WM_DELETEITEM message only for items deleted from an owner-drawn list box (with the LBS_OWNERDRAWFIXED or LBS_OWNERDRAWVARIABLE style) or owner-drawn combo box (with the CBS_OWNERDRAWFIXED or CBS_OWNERDRAWVARIABLE style).

Windows 95: Windows sends the WM_DELETEITEM message for any deleted list box or combo box item with nonzero item data.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
CB_DELETESTRING
CB_RESETCONTENT
DELETEITEMSTRUCT
LB_DELETESTRING
LB_RESETCONTENT

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.