Public Members

Construction/Destruction

CListBox Constructs a CListBox object.  

Initialization

Create Creates the Windows list box and attaches it to the CListBox object.  

General Operations

GetCount Returns the number of strings in a list box.  
GetHorizontalExtent Returns the width in pixels that a list box can be scrolled horizontally.  
SetHorizontalExtent Sets the width in pixels that a list box can be scrolled horizontally.  
GetTopIndex Returns the index of the first visible string in a list box.  
SetTopIndex Sets the zero-based index of the first visible string in a list box.  
GetItemData Returns the 32-bit value associated with the list-box item.  
SetItemData Sets the 32-bit value associated with the list-box item.  
GetItemRect Returns the bounding rectangle of the list-box item as it is currently displayed.  
GetSel Returns the selection state of a list-box item.  
GetText Copies a list-box item into a buffer.  
GetTextLen Returns the length in bytes of a list-box item.  
SetColumnWidth Sets the column width of a multicolumn list box.  
SetTabStops Sets the tab-stop positions in a list box.  

Single Selection Operations

GetCurSel Returns the zero-based index of the currently selected string in a list box.  
SetCurSel Selects a list-box string.  

Multiple Selection Operations

SetSel Selects or deselects a list box item in a multiple-selection list box.  
GetSelCount Returns the number of strings currently selected in a multiple-selection list box.  
GetSelItems Returns the indices of the strings currently selected in a list box.  
SelItemRange Selects or deselects a range of strings in a multiple-selection list box.  

String Operations

AddString Adds a string to a list box.  
DeleteString Deletes a string from a list box.  
InsertString Inserts a string at a specific location in a list box.  
ResetContent Clears all the entries from a list box.  
Dir Adds filenames from the current directory to a
list box.
 
FindString Searches for a string in a list box.  
SelectString Searches for and selects a string in a single-selection list box.