This macro deletes the indexed item from the List Box. It returns the number of items left.

#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HWND    hwndLbox;  /*  Listbox handle. */
LONG    index;     /*  Index of the listbox item. */
LONG    lItems;    /*  Number of items left. */

lItems = WinDeleteLboxItem(hwndLbox, index);


[Back] [Next]