This macro is defined as:
#define WinQueryLboxItemTextLength(hwndLbox, index) \ ((SHORT)WinSendMsg(hwndLbox, \ LM_QUERYITEMTEXTLENGTH, \ MPFROMSHORT(index), \ (MPARAM)NULL))
This macro requires the existence of a message queue.