TerInsertComboBoxField
Insert a combo-box field at the cursor position.
int TerInsertComboBoxField(hWnd, name, items, SelectedItem, insert, repaint)
HWND hWnd; | The handle of the window to be accessed |
LPBYTE name; | field name |
LPBYTE items; | List of items in the combo-box. Each item must be delimited by a '|' character. Example: "Red|Blue|Green|Yellow". |
LPBYTE SelectedItem; | The value of the selected item. Example: "Blue". |
BOOL Insert; | Set to TRUE to insert the combo-box. Set to FALSE to create a combo-box object, but do not insert it in the text. |
BOOL repaint; | Repaint the window after this operation |
Description: This function inserts a combo-box.
Return Value: This function returns the picture id of the field. It returns 0 to indicate an error condition.