LM_SETITEMTEXT
Appearance
This message sets the text into the specified list box item.
Syntax
param1 SHORT sItemIndex; /* Item index. */ param2 PSZ pszItemText; /* Item text. */
Parameters
- sItemIndex (SHORT) - input
- Item index.
- pszItemText (PSZ) - input
- Item text.
- This points to a string containing the text to set the list-box item to.
Returns
- rc (BOOL) - return
- Success indicator.
- TRUE: Successful completion.
- FALSE: Error occurred.
Remarks
The list box control window procedure responds to this message by copying the text identified by the pszItemText parameter into the item in the list specified by the sItemIndex parameter.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set rc to the default value of FALSE.