LB_RESETCONTENT

2.x

LB_RESETCONTENT
wParam = 0;     /* not used, must be zero */
lParam = 0L;    /* not used, must be zero */

An application sends an LB_RESETCONTENT message to remove all items from a list box.

Parameters

This message has no parameters.

Return Value

This message does not return a value.

Comments

If the list box was created with an owner-drawn style but without the LBS_HASSTRINGS style, the owner of the list box receives a WM_DELETEITEM message for each item in the list box.

Example

This example removes all items from a list box:

SendDlgItemMessage(hdlg, ID_MYLISTBOX, LB_RESETCONTENT, 0, 0L);

See Also

WM_DELETEITEM