This message copies a string from the list into a buffer.
Parameter | Description |
wParam | Contains the index of the string to be copied. | |
lParam | Points to the buffer that is to receive the string. The buffer must have both sufficient space for the string and a terminating null character. |
The return value is the length of the string (in bytes), excluding the terminating null character. The return value is LB_ERR if the wParam parameter is not a valid index.
If the list box was created with an owner-draw style but without the LBS_HASSTRINGS style, the buffer pointed to by the lParam parameter of the message receives the 32-bit value associated with the item through the lParam parameter of the LB_ADDSTRING or LB_INSERTSTRING message.