OWLNext 7.0
Borland's Object Windows Library for the modern age
|
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 functions | Description |
TListBox::GetCount | Number of items in the list. |
TListBox::FindString or TListBox::FindExactString | Find string index. |
TListBox::GetTopIndex | Index of the item at the top of the list box. |
TListBox::GetCaretIndex | Index of the currently focused item. |
TListBox::GetHorizontalExtent | Number of pixels the list box can scroll horizontally. |
TListBox::GetItemData | uint32 data set by SetItemData. |
TListBox::GetItemHeight | Height, in pixels, of the specified item. |
TListBox::GetItemRect | Rectangle used to display the specified item. |
TListBox::GetSelCount | Number of selected items (either 0 or 1). |
TListBox::GetSelIndex or TListBox::GetSel | Index of the selected item. |
TListBox::GetSelString | Selected item. |
TListBox::GetSelStrings or TListBox::GetSelIndexes | Selected items. |
TListBox::GetString | Item at a particular index. |
TListBox::GetStringLen | Length of a particular item. |