This macro is defined as:
#define WinQueryLBoxSelectedItem (hwndLbox) ((LONG)WinSendMsg(hwndLbox, LM_QUERYSELECTION, MPFROMLONG(LIT_FIRST), (MPARAM)NULL))
This macro requires the existence of a message queue.