MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
listbox.h
Go to the documentation of this file.
1 //
3 // IMPORTANT NOTICE
4 //
5 // The following open source license statement does not apply to any
6 // entity in the Exception List published by FMSoft.
7 //
8 // For more information, please visit:
9 //
10 // https://www.fmsoft.cn/exception-list
11 //
13 
55 /*
56  * $Id: listbox.h 10690 2008-08-18 09:32:47Z weiym $
57  *
58  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
59  * pSOS, ThreadX, NuCleus, OSE, and Win32.
60  */
61 
62 #ifndef _MGUI_CTRL_LISTBOX_H
63 #define _MGUI_CTRL_LISTBOX_H
64 
65 
66 #ifdef __cplusplus
67 extern "C" {
68 #endif /* __cplusplus */
69 
84 #define CTRL_LISTBOX ("listbox")
85 
87 #define LB_OKAY 0
88 
89 #define LB_ERR (-3)
90 
91 #define LB_ERRSPACE (-2)
92 
93 #define CMFLAG_BLANK 0x0000
94 #define CMFLAG_CHECKED 0x0001
95 #define CMFLAG_PARTCHECKED 0x0002
96 
102 #define CMFLAG_MASK 0x000F
103 
108 #define IMGFLAG_BITMAP 0x0010
109 
115 #define LBIS_SIGNIFICANT 0x0020
116 
118 typedef struct _LISTBOXITEMINFO
119 {
121  char* string;
122 
139  DWORD cmFlag; /* check mark flag */
140 
142  HICON hIcon; /* handle to icon */
144 
150 
163 #define LBS_NOTIFY 0x0001L
164 
172 #define LBS_SORT 0x0002L
173 
178 #define LBS_MULTIPLESEL 0x0008L
179 
184 #define LBS_CHECKBOX 0x1000L
185 
190 #define LBS_USEICON 0x2000L
191 
198 #define LBS_AUTOCHECK 0x4000L
199 
205 #define LBS_AUTOCHECKBOX (LBS_CHECKBOX | LBS_AUTOCHECK)
206 
211 #define LBS_SBALWAYS 0x8000L
212 
218 #define LBS_MOUSEFOLLOW 0x0010L
219 #if 0
220 #define LBS_OWNERDRAWFIXED 0x0010L
221 #define LBS_OWNERDRAWVARIABLE 0x0020L
222 #define LBS_USETABSTOPS 0x0080L
223 #define LBS_MULTICOLUMN 0x0200L
224 #define LBS_WANTKEYBOARDINPUT 0x0400L
225 #define LBS_NOREDRAW 0x0004L
226 #define LBS_HASSTRINGS 0x0040L
227 #define LBS_NOINTEGRALHEIGHT 0x0100L
228 #define LBS_EXTENDEDSEL 0x0800L
229 #endif
230 
277 #define LB_ADDSTRING 0xF180
278 
322 #define LB_INSERTSTRING 0xF181
323 
343 #define LB_DELETESTRING 0xF182
344 
349 #define LB_SELITEMRANGEEX 0xF183
350 
367 #define LB_RESETCONTENT 0xF184
368 
391 #define LB_GETSEL 0xF187
392 
418 #define LB_SETSEL 0xF185
419 
439 #define LB_GETCURSEL 0xF188
440 
461 #define LB_SETCURSEL 0xF186
462 
489 #define LB_GETTEXT 0xF189
490 
510 #define LB_GETTEXTLEN 0xF18A
511 
528 #define LB_GETCOUNT 0xF18B
529 
534 #define LB_SELECTSTRING 0xF18C
535 
540 #define LB_DIR 0xF18D
541 
559 #define LB_GETTOPINDEX 0xF18E
560 
585 #define LB_FINDSTRING 0xF18F
586 
603 #define LB_GETSELCOUNT 0xF190
604 
627 #define LB_GETSELITEMS 0xF191
628 
633 #define LB_SETTABSTOPS 0xF192
634 
639 #define LB_GETHORIZONTALEXTENT 0xF193
640 
645 #define LB_SETHORIZONTALEXTENT 0xF194
646 
651 #define LB_SETCOLUMNWIDTH 0xF195
652 
657 #define LB_ADDFILE 0xF196
658 
680 #define LB_SETTOPINDEX 0xF197
681 
705 #define LB_GETITEMRECT 0xF198
706 
734 #define LB_GETITEMDATA 0xF199
735 
763 #define LB_SETITEMDATA 0xF19A
764 
765 #define LB_SELITEMRANGE 0xF19B
766 #define LB_SETANCHORINDEX 0xF19C
767 #define LB_GETANCHORINDEX 0xF19D
768 
784 #define LB_SETCARETINDEX 0xF19E
785 
803 #define LB_GETCARETINDEX 0xF19F
804 
824 #define LB_SETITEMHEIGHT 0xF1A0
825 
842 #define LB_GETITEMHEIGHT 0xF1A1
843 
865 #define LB_FINDSTRINGEXACT 0xF1A2
866 
871 #define LB_SETLOCALE 0xF1A5
872 
876 #define LB_GETLOCALE 0xF1A6
877 
881 #define LB_SETCOUNT 0xF1A7
882 
886 #define LB_INITSTORAGE 0xF1A8
887 
891 #define LB_ITEMFROMPOINT 0xF1A9
892 
913 #define LB_SETTEXT 0xF1AA
914 
936 #define LB_GETCHECKMARK 0xF1AB
937 
961 #define LB_SETCHECKMARK 0xF1AC
962 
986 #define LB_GETITEMADDDATA 0xF1AD
987 
1011 #define LB_SETITEMADDDATA 0xF1AE
1012 
1042 #define LB_SETSTRCMPFUNC 0xF1AF
1043 
1060 #define LB_SETITEMDISABLE 0xF1B0
1061 
1078 #define LB_GETITEMDISABLE 0xF1B1
1079 
1096 #define LB_SETITEMBOLD 0xF1B2
1097 
1140 #define LB_MULTIADDITEM 0xF1B3
1141 
1142 #define LB_MSGMAX 0xF1B4
1143 
1158 #define LBN_ERRSPACE 255
1159 
1168 #define LBN_SELCHANGE 1
1169 
1177 #define LBN_DBLCLK 2
1178 
1187 #define LBN_SELCANCEL 3
1188 
1196 #define LBN_SETFOCUS 4
1197 
1205 #define LBN_KILLFOCUS 5
1206 
1211 #define LBN_CLICKCHECKMARK 6
1212 
1217 #define LBN_CLICKED 7
1218 
1223 #define LBN_ENTER 8
1224 
1231 #ifdef __cplusplus
1232 }
1233 #endif /* __cplusplus */
1234 
1235 #endif /* _MGUI_CTRL_LISTBOX_H */
1236 
_LISTBOXITEMINFO::cmFlag
DWORD cmFlag
Definition: listbox.h:139
DWORD
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:604
HICON
GHANDLE HICON
Handle to icon.
Definition: common.h:427
_LISTBOXITEMINFO::string
char * string
Definition: listbox.h:121
PLISTBOXITEMINFO
LISTBOXITEMINFO * PLISTBOXITEMINFO
Data type of the pointer to a LISTBOXITEMINFO.
Definition: listbox.h:149
_LISTBOXITEMINFO
Definition: listbox.h:118
LISTBOXITEMINFO
struct _LISTBOXITEMINFO LISTBOXITEMINFO
_LISTBOXITEMINFO::hIcon
HICON hIcon
Definition: listbox.h:142