LM QUERYITEMTEXTLENGTH
Appearance
This message returns the length of the text of the specified list box item.
Syntax
param1 SHORT sItemIndex; /* Item index. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */
Parameters
- sItemIndex (SHORT) - input
- Item index.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
Returns
- sTextLength (SHORT) - returns
- Length of item text.
- The length of the text string, excluding the null termination character.
- LIT_ERROR: Error occurred. For example, the item specified by its index does not exist.
- Other: Length of item text.
Remarks
The list box control window procedure responds to this message by setting sTextLength to the length in characters of the text of the item specified by sItemIndex.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, other than set sTextLength to the default value of 0.