The base class for making different kinds of items that can be put in a ListBox.
The base class for making different kinds of items that can be put in a ListBox. It defines a kind of an interface for all derived list item classes to implement. ListItem itself doesn't implement anything else but drawing the item background but derived classes may draw text, bitmaps, etc.
0 - list does not have focus, item is not selected
1 - list does not have focus, item is selected
2 - list has focus, item is not the focus item, item is not selected
3 - list has focus, item is the focus item, item is not selected
4 - list has focus, item is the focus item, item is selected
5 - list has focus, item is not the focus item, item is selected
6 - list is disabled, item is not selected
7 - list is disabled, item is selected
This only applies to multiselect lists. In normal mode only states 0, 1, 5
and 6 are possible and are equivalent to the familiar states NORMAL, SELECTED,
FOCUSED and DISABLED.
Derived classes should normally first call this function to draw the background, and then draw themselves on top of it.
Alphabetic index Hierarchy of classes