MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
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

◆ CBS_AUTOFOCUS

#define CBS_AUTOFOCUS   0x8000L

The edit field will gain the focus automatically.

Definition at line 230 of file combobox.h.

◆ CBS_AUTOHSCROLL

#define CBS_AUTOHSCROLL   0x0040L

This style is reserved.

Definition at line 175 of file combobox.h.

◆ CBS_AUTOLOOP

#define CBS_AUTOLOOP   0x0200L

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

Definition at line 194 of file combobox.h.

◆ CBS_AUTOSPIN

#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 116 of file combobox.h.

◆ CBS_DISABLENOSCROLL

#define CBS_DISABLENOSCROLL   0x0080L

This style is reserved.

Definition at line 182 of file combobox.h.

◆ CBS_DROPDOWNLIST

#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.
int listbox_height = 100;
CreateWindowEx (CTRL_COMBOBOX, ..., listbox_height));

Definition at line 141 of file combobox.h.

◆ CBS_EDITBASELINE

#define CBS_EDITBASELINE   0x0800L

The edit box has base line.

Definition at line 206 of file combobox.h.

◆ CBS_EDITNOBORDER

#define CBS_EDITNOBORDER   0x0400L

The edit box has no border.

Definition at line 200 of file combobox.h.

◆ CBS_LOWERCASE

#define CBS_LOWERCASE   0x4000L

The edit field is lowercase.

Definition at line 224 of file combobox.h.

◆ CBS_NOTIFY

#define CBS_NOTIFY   0x0008L

Notifies the parent window.

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

Definition at line 156 of file combobox.h.

◆ CBS_READONLY

#define CBS_READONLY   0x1000L

The edit field is read-only.

Definition at line 212 of file combobox.h.

◆ CBS_SIMPLE

#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.
int listbox_height = 100;
CreateWindowEx (CTRL_COMBOBOX, ..., listbox_height);

Definition at line 106 of file combobox.h.

◆ CBS_SORT

#define CBS_SORT   0x0100L

Automatically sorts strings entered in the list box.

Definition at line 188 of file combobox.h.

◆ CBS_SPINARROW_LEFTRIGHT

#define CBS_SPINARROW_LEFTRIGHT   0x0020L

The spin arrow.

Definition at line 168 of file combobox.h.

◆ CBS_SPINARROW_TOPBOTTOM

#define CBS_SPINARROW_TOPBOTTOM   0x0010L

The spin arrow.

Definition at line 162 of file combobox.h.

◆ CBS_SPINLIST

#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 126 of file combobox.h.

◆ CBS_TYPEMASK

#define CBS_TYPEMASK   0x0007L

The type mask of style of combobox.

Definition at line 147 of file combobox.h.

◆ CBS_UPPERCASE

#define CBS_UPPERCASE   0x2000L

The edit field is uppercase.

Definition at line 218 of file combobox.h.

CreateWindowEx
static HWND GUIAPI CreateWindowEx(const char *spClassName, const char *spCaption, DWORD dwStyle, DWORD dwExStyle, LINT id, int x, int y, int w, int h, HWND hParentWnd, DWORD dwAddData)
A shortcut version of CreateWindowEx2.
Definition: window.h:9894
CTRL_COMBOBOX
#define CTRL_COMBOBOX
The class name of combobox control.
Definition: combobox.h:84