MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
Styles of combobox control

Macros

#define CBS_SIMPLE   0x0000L
 Displays the list box at all times. More...
 
#define CBS_AUTOSPIN   0x0001L
 Creates AutoSpin box. More...
 
#define CBS_SPINLIST   0x0002L
 Creates SpinList box. More...
 
#define CBS_DROPDOWNLIST   0x0003L
 Specifies a drop-down list box in the selection filed. More...
 
#define CBS_TYPEMASK   0x0007L
 The type mask of style of combobox. More...
 
#define CBS_NOTIFY   0x0008L
 Notifies the parent window. More...
 
#define CBS_SPINARROW_TOPBOTTOM   0x0010L
 The spin arrow. More...
 
#define CBS_SPINARROW_LEFTRIGHT   0x0020L
 The spin arrow. More...
 
#define CBS_AUTOHSCROLL   0x0040L
 This style is reserved. More...
 
#define CBS_DISABLENOSCROLL   0x0080L
 This style is reserved. More...
 
#define CBS_SORT   0x0100L
 Automatically sorts strings entered in the list box. More...
 
#define CBS_AUTOLOOP   0x0200L
 Loops the value automatically if the type of combobox is CBS_AUTOSPIN. More...
 
#define CBS_EDITNOBORDER   0x0400L
 The edit box has no border. More...
 
#define CBS_EDITBASELINE   0x0800L
 The edit box has base line. More...
 
#define CBS_READONLY   0x1000L
 The edit field is read-only. More...
 
#define CBS_UPPERCASE   0x2000L
 The edit field is uppercase. More...
 
#define CBS_LOWERCASE   0x4000L
 The edit field is lowercase. More...
 
#define CBS_AUTOFOCUS   0x8000L
 The edit field will gain the focus automatically. More...
 

Detailed Description

Macro Definition Documentation

#define CBS_AUTOFOCUS   0x8000L

The edit field will gain the focus automatically.

Definition at line 218 of file combobox.h.

#define CBS_AUTOHSCROLL   0x0040L

This style is reserved.

Definition at line 163 of file combobox.h.

#define CBS_AUTOLOOP   0x0200L

Loops the value automatically if the type of combobox is CBS_AUTOSPIN.

Definition at line 182 of file combobox.h.

#define CBS_AUTOSPIN   0x0001L

Creates AutoSpin box.

AutoSpin box has an input field with a spin button. The input field displays an integer, and you can click spin button to increase or decrease the value of the integer.

Definition at line 104 of file combobox.h.

#define CBS_DISABLENOSCROLL   0x0080L

This style is reserved.

Definition at line 170 of file combobox.h.

#define CBS_DROPDOWNLIST   0x0003L

Specifies a drop-down list box in the selection filed.

Note
The argument dwAddData of CreateWindowEx function should be the expected height of the list box.
1 int listbox_height = 100;
2 
3 CreateWindowEx (CTRL_COMBOBOX, ..., listbox_height));

Definition at line 129 of file combobox.h.

#define CBS_EDITBASELINE   0x0800L

The edit box has base line.

Definition at line 194 of file combobox.h.

#define CBS_EDITNOBORDER   0x0400L

The edit box has no border.

Definition at line 188 of file combobox.h.

#define CBS_LOWERCASE   0x4000L

The edit field is lowercase.

Definition at line 212 of file combobox.h.

#define CBS_NOTIFY   0x0008L

Notifies the parent window.

Causes the combo box to notify the parent window with a notification message.

Definition at line 144 of file combobox.h.

#define CBS_READONLY   0x1000L

The edit field is read-only.

Definition at line 200 of file combobox.h.

#define CBS_SIMPLE   0x0000L

Displays the list box at all times.

The current selection in the list box is displayed in the edit control.

Note
The argument dwAddData of CreateWindowEx function should be the expected height of the list box.
1 int listbox_height = 100;
2 
3 CreateWindowEx (CTRL_COMBOBOX, ..., listbox_height);

Definition at line 94 of file combobox.h.

#define CBS_SORT   0x0100L

Automatically sorts strings entered in the list box.

Definition at line 176 of file combobox.h.

#define CBS_SPINARROW_LEFTRIGHT   0x0020L

The spin arrow.

Definition at line 156 of file combobox.h.

#define CBS_SPINARROW_TOPBOTTOM   0x0010L

The spin arrow.

Definition at line 150 of file combobox.h.

#define CBS_SPINLIST   0x0002L

Creates SpinList box.

SpinList box has an input field with a spin button. The input field displays some text, and you can click spin button to change the text. The candidate text string comes from the strings you add to the box.

Definition at line 114 of file combobox.h.

#define CBS_TYPEMASK   0x0007L

The type mask of style of combobox.

Definition at line 135 of file combobox.h.

#define CBS_UPPERCASE   0x2000L

The edit field is uppercase.

Definition at line 206 of file combobox.h.