CB_DELETESTRING

Version 3.0

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 CB_ERR if wParam does not specify a valid index.

Comments

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