Jump to content

LM_SETITEMTEXT

From EDM2
Revision as of 02:22, 28 April 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:LM_SETITEMTEXT}} This message sets the text into the specified list box item. ==Syntax== <pre> param1 SHORT sItemIndex; Item index.: param2 PSZ pszItemText; Item text.: </pre> ==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:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.