Public Members

Construction/Destruction

CComboBox Constructs a CComboBox object.  

Initialization

Create Creates the combo box and attaches it to the CComboBox object.  

General Operations

GetCount Retrieves the number of items in the list box of a combo box.  
GetCurSel Retrieves the index of the currently selected item, if any, in the list box of a combo box.  
SetCurSel Selects a string in the list box of a combo box.  
GetEditSel Gets the starting and ending character positions
of the current selection in the edit control of a combo box.
 
LimitText Limits the length of the text that the user may enter into the edit control of a combo box.  
SetEditSel Select characters in the edit control of a
combo box.
 
GetItemData Retrieves the application-supplied 32-bit value associated with the specified combo-box item.  
SetItemData Sets the 32-bit value associated with the specified item in a combo box.  
GetLBText Gets a string from the list box of a combo box.  
GetLBTextLen Gets the length of a string in the list box of a combo box.  
ShowDropDown Shows or hides the list box of a combo box that has the CBS_DROPDOWN or CBS_DROPDOWNLIST style.  
Clear Deletes (clears) the current selection (if any) in the edit control.  
Copy Copies the current selection (if any) onto the Clipboard in CF_TEXT format.  
Cut Deletes (cuts) the current selection (if any) in the edit control, and copies the deleted text onto the Clipboard in CF_TEXT format.  
Paste Inserts the data from the Clipboard into the edit control at the current cursor position. Data is inserted only if the Clipboard contains data in CF_TEXT format.  

String Operations

AddString Adds a string to the end of the list in the list box of a combo box, or at the sorted position for list boxes with the CBS_SORT style.  
DeleteString Deletes a string from the list box of a combo box.  
InsertString Inserts a string into the list box of a combo box.  
ResetContent Removes all items from the list box and edit control of a combo box.  
Dir Adds a list of filenames to the list box of a
combo box.
 
FindString Finds the first string that contains the specified prefix in the list box of a combo box.  
SelectString Searches for a string in the list box of a combo box and, if the string is found, selects the string in the list box and copies the string to the edit control.