OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Querying List Boxes

There are several TListBox member functions you can call to find out information about the list box or its item list.

The following table summarizes the list box query member functions.

TListBox member functions for querying list boxes

Member functionsDescription
TListBox::GetCountNumber of items in the list.
TListBox::FindString or TListBox::FindExactStringFind string index.
TListBox::GetTopIndexIndex of the item at the top of the list box.
TListBox::GetCaretIndexIndex of the currently focused item.
TListBox::GetHorizontalExtentNumber of pixels the list box can scroll horizontally.
TListBox::GetItemDatauint32 data set by SetItemData.
TListBox::GetItemHeightHeight, in pixels, of the specified item.
TListBox::GetItemRectRectangle used to display the specified item.
TListBox::GetSelCountNumber of selected items (either 0 or 1).
TListBox::GetSelIndex or TListBox::GetSelIndex of the selected item.
TListBox::GetSelStringSelected item.
TListBox::GetSelStrings or TListBox::GetSelIndexesSelected items.
TListBox::GetStringItem at a particular index.
TListBox::GetStringLenLength of a particular item.

See Also