DLL
To create and set up a combo box cell
- If you want to use the default combo box, call the SSSetTypeComboBox function and set the parameters as follows:
-
If you want to customize the combo box, call the SSSetTypeComboBoxEx function and set the parameters as follows:
- If you want to allow users to type one or more characters to search for an item in the list,
- If you want the combo box to act as a drop-down combo box, set the lStyle parameter to SS_CB_DROPDOWN.
- Provide list items for the combo box by providing a string of tab-delimited items using the lpItems parameter.
- If you want to change the number of rows in the drop-down list, set the dMaxRows parameter.
- If you want to specify the maximum number of characters that are displayed in the edit field, set the dMaxEditLen parameter.
- Use the lStyle parameter to specify the text alignment.
-
If you want to specify the width of the combo box, set the dComboWidth parameter.
For more information about how to set this parameter, see Specifying the Width and Alignment of the Combo Box Drop-Down List.
- Call the SSSetCellType or SSSetCellTypeRange function and set the CellType parameter to SS_TYPE_COMBOBOX.