Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Classes

~CExtGridCellComboBox Destructor
AddItem Adds a new item to the list box of the cell combo box and returns a zero-based index of the added item in the list box.
AddString Adds a new item to the list box of the cell combo box and returns a zero-based index of the item in the list box.
CExtGridCellComboBox Constructor.
DeleteItem Deletes the item specified by nIndex from the cell combo box. The method returns true if succeeded or false if nIndex is invalid.
InsertItem Insert a new item to the list box of the cell combo box and returns a zero-based index of the added item.
InsertString Insert a new string to the list box of the cell combo box and returns a zero-based index of the added item.
IsItemEnabled Returns a flag which indicates whether the combo box item is enabled.
EnableItem Enables or disables the combo box item.
FindString Finds the first string that contains the specified prefix in the list box of the cell combo box. The item is not selected. The method succeeded if the return value is greater than or equal to 0, which is a zero-based index of the matching item. The method fails if the return value is equal to CB_ERR.
FindStringExact Find the first list-box string in the cell combo box that matches the string specified by lpszString. The method succeeded if the return value is greater than or equal to 0, which is a zero-based index of the matching item. The method fails if the return value is equal to CB_ERR.
GetCount Returns the number of items in the list-box of the cell combo box.
GetCurSel Returns a zero-based index of the currently selected item in the list box of the cell combo box, or CB_ERR if no item is selected.
GetEnumMode Returns true if the enum mode applied for the cell. The enum mode means that the combo box selection is changed cyclically when the user repeatedly double clicks the edit control.
GetImageList Returns a pointer to the image list used for drawing list box items of the cell combo box, or NULL if no image list is set.
GetItem Returns a pointer to the ITEM_INFO structure that holds information about the item or NULL if nIndex is invalid.
GetItemBackColor Returns background color of the combo box item. The COLORREF(-1L) value means the combo box item has default background color.
GetItemData Returns the 32-bit application-specific value associated with the specified item.
GetItemString Gets a string from the list box of the cell combo box.
GetItemTextColor Gets the text color of the combo box item. The COLORREF(-1L) value means the combo box item has default text color.
ResetContent Removes all items from the list box and edit control of the cell combo box.
SelectString Searches for a string in the list box of the cell combo box, and if the string is found, selects the corresponding item and returns a zero-based index of the selected item if the string is found. If the search is unsuccessful, the return value is CB_ERR and the current selection is not changed.
SetCurSel Selects an item in the list box of the cell combo box. The method returns false if failed.
SetEnumMode Turns on/off the enum mode for the cell combo box. The enum mode means that the combo box selection is changed cyclically when the user repeatedly double clicks the edit control.
SetImageList Assigns a new image list used for drawing list box items of the cell combo box.
SetItem Set attributes for the specified item and returns true if succeeded or false otherwise.
SetItemBackColor �Sets the background color of the combo box item.
SetItemData Sets the 32-bit value associated with the specified item in the cell combo box and returns true if succeeded or false otherwise.
SetItemString Changes the string for the specified item in the list box.
SetItemTextColor Sets the text color of the combo box item.
SortItems Sorts combo box items.

Overridables

OnCompareItems Called to compare two combo box items. Returns negative value if first item is less than second item. Returns negative value if first item is greater than second item. Returns zero value if items are equal.
OnPopupListBoxQueryItemIcon Called to retrieve the icons for the specified list box item.
OnPopupListBoxQueryItemIndent Called to retrieve the indent for the specified list box item.
OnPopupListBoxQueryItemIndentWidth Called to retrieve the indent width in pixels.

See Also

CExtGridCellComboBox Overview | Hierarchy Chart