LB_GETSEL

This message returns the selection state of an item.

Parameter Description  

wParam Contains an index to the item.  
lParam Is not used.  

Return Value

The return value is a positive number if an item is selected. Otherwise, it is zero. The return value is LB_ERR if an error occurs.