LB_DELETESTRING

This message deletes a string from the list box.

Parameter Description  

wParam Contains an index to the string that is to be deleted.  
lParam Is not used.  

Return Value

The return value is a count of the strings remaining in the list. The return value is LB_ERR if an error occurs.

Comments

If the list box was created with an owner-draw style but without the LBS_HASSTRINGS style, a WM_DELETEITEM message is sent to the owner of the list box so the application can free additional data associated with the item (through the lParam parameter of the LB_ADDSTRING or LB_INSERTSTRING message).