<< Return to Main Index

< Return to Class Index

CGXComboBox Class Members

Construction

CGXComboBox Constructs a combo-box control object.

Dropdown-State

ShowDropDown Shows or hides the list box part of the combo box.
GetDroppedState Determines whether the list box part is visible (dropped down).

Overridables

CreateListBox Called from ShowDropDown to create the list box part of the combo box.
OnFillDroppedList Called after the list box has been created and needs to be filled with items. The default version of this method reads all items from the choice list.
OnGetListboxRect Called before the drop-down list box is made visible. Override this method for changing the default list box size (e.g., if you would like to have it wider than the default).
OnStoreDroppedList Called when the user has selected an item and it should be copied to the edit control part of the combo box.

Attributes

m_bFillWithChoiceList TRUE if list box items are retrieved from choice list. FALSE if list box is filled by overriding OnFillDroppedList.
m_bInactiveDrawAllCell Specifies whether the combo box shall draw text over the pushbutton if it is hidden. If the attribute is TRUE, the text will be drawn over the hidden button. The default setting is FALSE, which means that the text is clipped even if the pushbutton is not visible.
m_bInactiveDrawButton Specifies whether the pushbutton shall be drawn even if the cell is not the current cell. If the attribute is TRUE, the button will be drawn. The default setting is FALSE, which means that the button is only drawn for the current cell.
m_bSizeToContent Specifies if the window rectangle for the combo box shall be computed on the font and cell size. m_bSizeToContent is TRUE by default. If you set this attribute FALSE, the combo box will draw the button over the whole height of the cell.

CGXComboBox

Class Overview