Syntax
void ListBoxFree( ListBox *listBox );
Arguments
listBox the list box to release, or NULL to do nothing.
Description
Freeing the list releases its stored texts, item text and data, attached vertical scroll bar and saved screen buffer. Use `ListBoxClose()` on an open drop-down to restore its saved area before freeing it. Use `ListBoxKillFocus()` to restore the saved cursor shape if the list has focus. The application manages the lifetime of the data pointed to by the list's cargo.