MiniGUI API Reference (MiniGUI-Processes)
v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
|
Macros | |
#define | CB_GETEDITSEL 0xF140 |
Gets the starting and ending character positions of the current selection. More... | |
#define | CB_LIMITTEXT 0xF141 |
Limits the length of text in the edit control. More... | |
#define | CB_SETEDITSEL 0xF142 |
Sets the starting and ending character positions of the current selection. More... | |
#define | CB_ADDSTRING 0xF143 |
Adds a string to the list box of a combo box. More... | |
#define | CB_DELETESTRING 0xF144 |
Deletes a string in the list box of a combo box. More... | |
#define | CB_GETCOUNT 0xF146 |
Retreives the number of items in the list box of a combo box. More... | |
#define | CB_GETCURSEL 0xF147 |
Retreives the index of the currently selected item in the list box. More... | |
#define | CB_GETLBTEXT 0xF148 |
Retreives the string of an item in the list box. More... | |
#define | CB_GETLBTEXTLEN 0xF149 |
Gets the string length of an item in the list box. More... | |
#define | CB_INSERTSTRING 0xF14A |
Inserts a string to the list box of a combo box. More... | |
#define | CB_RESETCONTENT 0xF14B |
Removes all items from the list box and edit control. More... | |
#define | CB_FINDSTRING 0xF14C |
Searchs the list box for an item beginning with the characters in a specified string. More... | |
#define | CB_SETCURSEL 0xF14E |
Selects a string in the list of a combo box. More... | |
#define | CB_GETITEMADDDATA 0xF150 |
Retreives the application-supplied 32-bit value associated with the specified item. More... | |
#define | CB_SETITEMADDDATA 0xF151 |
Sets a 32-bit data value with the specified item. More... | |
#define | CB_GETDROPPEDCONTROLRECT 0xF152 |
Retreives the screen coordinates of the dropdown list box of a combo box. More... | |
#define | CB_SETITEMHEIGHT 0xF153 |
Sets the height of all items of the list box in a combo box. More... | |
#define | CB_GETITEMHEIGHT 0xF154 |
Gets the height of items of the list box in a combo box. More... | |
#define | CB_GETDROPPEDSTATE 0xF157 |
Determines whether the list box of a combo box is dropped down. More... | |
#define | CB_FINDSTRINGEXACT 0xF158 |
Searchs the list box for an item that matches the specified string. More... | |
#define | CB_SETSPINFORMAT 0xF162 |
Sets the format string of value for CBS_AUTOSPIN type. More... | |
#define | CB_SETSPINRANGE 0xF163 |
Determines the range of the spin box in a combo box. More... | |
#define | CB_GETSPINRANGE 0xF164 |
Gets the range of the spin box in a combo box. More... | |
#define | CB_SETSPINVALUE 0xF165 |
Determines the value of the spin box in a combo box. More... | |
#define | CB_GETSPINVALUE 0xF166 |
Gets the current value of the spin box in a combo box. More... | |
#define | CB_SETSPINPACE 0xF167 |
Determines the pace and the fast pace of the spin box in a combo box. More... | |
#define | CB_GETSPINPACE 0xF168 |
Gets the pace and the fast pace of the spin box in a combo box. More... | |
#define | CB_SPIN 0xF170 |
Spins the value of the spin box or auto spin box. More... | |
#define | CB_FASTSPIN 0xF171 |
Fast spins the value of the spin box or auto spin box. More... | |
#define | CB_SETSTRCMPFUNC 0xF172 |
Sets the STRCMP function used to sort items. More... | |
#define | CB_GETCHILDREN 0xF173 |
Gets the handles to the children of a ComboBox control. More... | |
#define CB_ADDSTRING 0xF143 |
Adds a string to the list box of a combo box.
An application sends a CB_ADDSTRING message to add a string to the list box of a combo box.
string | Pointer to the null-terminated string to be added. |
Definition at line 321 of file combobox.h.
#define CB_DELETESTRING 0xF144 |
Deletes a string in the list box of a combo box.
An application sends a CB_DELETESTRING message to delete a string in the list box of a combo box.
index | Specifies the index of the string to delete. |
Definition at line 342 of file combobox.h.
#define CB_FASTSPIN 0xF171 |
Fast spins the value of the spin box or auto spin box.
direct | Indicats the direct of the spin. Zero means up, non-zero down. |
Definition at line 843 of file combobox.h.
#define CB_FINDSTRING 0xF14C |
Searchs the list box for an item beginning with the characters in a specified string.
An application sends a CB_FINDSTRING message to search the list box for an item beginning with the characters in a specified string.
indexStart | Index of the item preceding the first item to be searched. |
string | Pointer to the null-terminated string that contains the prefix to search for. |
Definition at line 498 of file combobox.h.
#define CB_FINDSTRINGEXACT 0xF158 |
Searchs the list box for an item that matches the specified string.
An application sends a CB_FINDSTRINGEXACT message to search the list box for an item that matches a specified string.
indexStart | Index of the item preceding the first item to be searched. |
string | Pointer to the null-terminated string to search for. |
Definition at line 663 of file combobox.h.
#define CB_GETCHILDREN 0xF173 |
Gets the handles to the children of a ComboBox control.
An application sends a CB_GETCHILDREN message to get the handles to the children of a ComboBox control.
wnd_edit | The buffer saving the handle to the edit box of the ComboBox control. |
wnd_list | The buffer saving the handle to the list box of the ComboBox control. If the ComboBox have type of CBS_AUTOSPIN, handle to the list box will be 0. |
Definition at line 900 of file combobox.h.
#define CB_GETCOUNT 0xF146 |
Retreives the number of items in the list box of a combo box.
An application sends a CB_GETCOUNT message to retreive the number of items in the list box of a combo box.
Definition at line 362 of file combobox.h.
#define CB_GETCURSEL 0xF147 |
Retreives the index of the currently selected item in the list box.
An application sends a CB_GETCURSEL message to retreive the index of the currently selected item in the list box of a combo box.
Definition at line 381 of file combobox.h.
#define CB_GETDROPPEDCONTROLRECT 0xF152 |
Retreives the screen coordinates of the dropdown list box of a combo box.
rect | Pointer to the RECT structure used to save the coordinates. |
Definition at line 585 of file combobox.h.
#define CB_GETDROPPEDSTATE 0xF157 |
Determines whether the list box of a combo box is dropped down.
Definition at line 640 of file combobox.h.
#define CB_GETEDITSEL 0xF140 |
Gets the starting and ending character positions of the current selection.
An application sends a CB_GETEDITSEL message to get the starting and ending character positions of the current selection in the edit control of a combo box.
start | Pointer to a 32-bit value that receives the starting position of the selection. |
end | Pointer to a 32-bit value that receives the ending position of the selection. |
Definition at line 251 of file combobox.h.
#define CB_GETITEMADDDATA 0xF150 |
Retreives the application-supplied 32-bit value associated with the specified item.
An application sends an CB_GETITEMADDDATA message to retrive the 32-bit data value associated with with an item in the list box of the combo box.
index | The index of the item. |
Definition at line 543 of file combobox.h.
#define CB_GETITEMHEIGHT 0xF154 |
Gets the height of items of the list box in a combo box.
Definition at line 621 of file combobox.h.
#define CB_GETLBTEXT 0xF148 |
Retreives the string of an item in the list box.
An application sends a CB_GETLBTEXT message to retreive the string of a specified item in the list box of a combo box.
index | The index of the selected item. |
string | Pointer to the string buffer. |
Definition at line 406 of file combobox.h.
#define CB_GETLBTEXTLEN 0xF149 |
Gets the string length of an item in the list box.
An application sends a CB_GETLBTEXTLEN message to get the string length of a specified item in the list box of a combo box.
index | The index of the specified item. |
Definition at line 427 of file combobox.h.
#define CB_GETSPINPACE 0xF168 |
Gets the pace and the fast pace of the spin box in a combo box.
spin_pace | Pointer to the data to retreive the new pace value of the spin box. |
spin_fastpace | Pointer to the data to retreive the new fast pace value of the spin box. |
Definition at line 805 of file combobox.h.
#define CB_GETSPINRANGE 0xF164 |
Gets the range of the spin box in a combo box.
spin_min | The minimum value of the spin box. |
spin_max | The maximum value of the spin box. |
Definition at line 732 of file combobox.h.
#define CB_GETSPINVALUE 0xF166 |
Gets the current value of the spin box in a combo box.
Definition at line 765 of file combobox.h.
#define CB_INSERTSTRING 0xF14A |
Inserts a string to the list box of a combo box.
An application sends a CB_INSERTSTRING message to insert a string to the list box of a combo box. Unlike the CB_ADDSTRING message, the CB_INSERTSTRING message do not cause a list to be sorted.
index | The index of the position at which to insert the string. |
string | Pointer to the null-terminated string to be added. |
Definition at line 455 of file combobox.h.
#define CB_LIMITTEXT 0xF141 |
Limits the length of text in the edit control.
An application sends a CB_LIMITTEXT message to limit the length of the text the user may type into the edit control of a combo box.
newLimit | Specifies the maximum number of characters the user can enter. |
Definition at line 272 of file combobox.h.
#define CB_RESETCONTENT 0xF14B |
Removes all items from the list box and edit control.
An application sends a CB_RESETCONTENT message remove all items from the list box and edit control of a combo box.
Definition at line 473 of file combobox.h.
#define CB_SETCURSEL 0xF14E |
Selects a string in the list of a combo box.
index | The index of the string to select. |
Definition at line 518 of file combobox.h.
#define CB_SETEDITSEL 0xF142 |
Sets the starting and ending character positions of the current selection.
An application sends a CB_SETEDITSEL message to set the starting and ending character positions of the current selection in the edit control of a combo box.
start | The starting position of the selection. |
end | The ending position of the selection. |
Definition at line 296 of file combobox.h.
#define CB_SETITEMADDDATA 0xF151 |
Sets a 32-bit data value with the specified item.
An application sends an CB_SETITEMADDDATA message to associate a 32-bit data value specified in the lParam parameter with an item in the list box that is specified in the wParam parameter.
index | The index of the specified item. |
addData | the 32-bit data value which will associated with the item. |
Definition at line 569 of file combobox.h.
#define CB_SETITEMHEIGHT 0xF153 |
Sets the height of all items of the list box in a combo box.
An application sends an CB_SETITEMHEIGHT message to set the height of all items of the list box in a combo box.
itemHeight | New height of item of the list box. |
Definition at line 606 of file combobox.h.
#define CB_SETSPINFORMAT 0xF162 |
Sets the format string of value for CBS_AUTOSPIN type.
format | A format string can be used by sprintf function to format an interger. |
Definition at line 692 of file combobox.h.
#define CB_SETSPINPACE 0xF167 |
Determines the pace and the fast pace of the spin box in a combo box.
new_pace | The new pace value of the spin box. |
new_fastpace | The new fast pace value of the spin box. |
Definition at line 785 of file combobox.h.
#define CB_SETSPINRANGE 0xF163 |
Determines the range of the spin box in a combo box.
new_min | The new minimum value of the spin box. |
new_max | The new maximum value of the spin box. |
Definition at line 712 of file combobox.h.
#define CB_SETSPINVALUE 0xF165 |
Determines the value of the spin box in a combo box.
new_value | The new value of the spin box. |
Definition at line 750 of file combobox.h.
#define CB_SETSTRCMPFUNC 0xF172 |
Sets the STRCMP function used to sort items.
An application sends a CB_SETSTRCMPFUNC message to set a new STRCMP function to sort items in the combo-box.
Note that you should send this message before adding any item to the combo-box control.
my_strcmp | Your own function to compare two strings. |
Definition at line 876 of file combobox.h.
#define CB_SPIN 0xF170 |
Spins the value of the spin box or auto spin box.
direct | Indicats the direct of the spin. Zero means up, non-zero down. |
Definition at line 824 of file combobox.h.