SizeList()
USAGE
ListItem = (struct ListItem *) SizeList(ListInfo)
FUNCTION
This resizes the list and redraws it. You specify the new size of the list by
editing the Width and Height fields of the ListInfo structure. In particular,
it makes sense to change the Height field, since by making the list height
greater, you allow the user acces to more list items.
The scrollbar is adjusted properly.
You might call this whenever you receive NEWSIZE events, indicating the user
has changed the size of the window and would like to see more or less of the
list.
This routine also returns a pointer to the currently selected item, if such
exist.
INPUTS
ListInfo = Pointer to LIstInfo structure that describes the list.
RESULT
ListItem = Pointer to the currently selected ListItem, if it exist, else
NULL.
SEE ALSO
DrawList, ScrollList, ClickList, InsertListItem, SetScrollBar, RemoveListItem