msgs12.hlp (Topic list)
LM_QUERYITEMTEXTLENGTH (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINLISTBOXES
 
LM_QUERYITEMTEXTLENGTH
mp1 = MPFROMSHORT((SHORT) iItem);    /* item index             */
mp2 = 0L;                            /* not used, must be zero */
 
An application sends an LM_QUERYITEMTEXTLENGTH message to determine the
length of the text in the specified list-box item.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
iItem      Low word of mp1. Specifies the index of the item.
 
Return Value
 
The return value is the length (in characters) of the text of the item
specified by iItem if the operation is successful, or zero if the specified
item does not exist, or LIT_ERROR if an error occurred.
 
See Also
 
LM_QUERYITEMTEXT