Class Hierarchy
CAdUiComboBox CAcUiComboBox CAcUiMRUComboBox CAcUiTrueColorComboBox
C++
class CAcUiTrueColorComboBox : public CAcUiMRUComboBox;
File
acuiComboBox.h
Description
The CAcUiTrueColorComboBox class specializes CAcUiMRUComboBox for color selection.
The color combo box displays color swatches representing the colors given to it as AcCmColor objects. The stock items present in the control reflect color numbers 1 through 7. Both optional items are used: Option1 displays BYLAYER and Option2 displays BYBLOCK. MRU items display the string generated by AcCmColor::colorNameForDisplay().
The cargo associated with each item is an index to a table of AcCmColor objects that this class maintains, with AcCmColor representations of BYBLOCK and BYLAYER already in the table by default. The m_cargoOther1 data member is enabled and triggers the AutoCAD Color Selection dialog box. If m_cargoOther2 is enabled, it displays as "Windows..." and by default triggers the Windows Color Selection common dialog. If the user selects an item from either of these dialog boxes, the selection appears in the MRU list and becomes the current item in the control.
Links
CAcUiTrueColorComboBox Enumerations, CAcUiTrueColorComboBox Methods