MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
listbox.h
Go to the documentation of this file.
1 
43 /*
44  * $Id: listbox.h 10690 2008-08-18 09:32:47Z weiym $
45  *
46  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
47  * pSOS, ThreadX, NuCleus, OSE, and Win32.
48  */
49 
50 #ifndef _MGUI_CTRL_LISTBOX_H
51 #define _MGUI_CTRL_LISTBOX_H
52 
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif /* __cplusplus */
57 
72 #define CTRL_LISTBOX ("listbox")
73 
75 #define LB_OKAY 0
76 
77 #define LB_ERR (-3)
78 
79 #define LB_ERRSPACE (-2)
80 
81 #define CMFLAG_BLANK 0x0000
82 #define CMFLAG_CHECKED 0x0001
83 #define CMFLAG_PARTCHECKED 0x0002
84 
90 #define CMFLAG_MASK 0x000F
91 
96 #define IMGFLAG_BITMAP 0x0010
97 
103 #define LBIS_SIGNIFICANT 0x0020
104 
106 typedef struct _LISTBOXITEMINFO
107 {
109  char* string;
110 
127  DWORD cmFlag; /* check mark flag */
128 
130  HICON hIcon; /* handle to icon */
132 
138 
151 #define LBS_NOTIFY 0x0001L
152 
160 #define LBS_SORT 0x0002L
161 
166 #define LBS_MULTIPLESEL 0x0008L
167 
172 #define LBS_CHECKBOX 0x1000L
173 
178 #define LBS_USEICON 0x2000L
179 
186 #define LBS_AUTOCHECK 0x4000L
187 
193 #define LBS_AUTOCHECKBOX (LBS_CHECKBOX | LBS_AUTOCHECK)
194 
199 #define LBS_SBALWAYS 0x8000L
200 
206 #define LBS_MOUSEFOLLOW 0x0010L
207 #if 0
208 #define LBS_OWNERDRAWFIXED 0x0010L
209 #define LBS_OWNERDRAWVARIABLE 0x0020L
210 #define LBS_USETABSTOPS 0x0080L
211 #define LBS_MULTICOLUMN 0x0200L
212 #define LBS_WANTKEYBOARDINPUT 0x0400L
213 #define LBS_NOREDRAW 0x0004L
214 #define LBS_HASSTRINGS 0x0040L
215 #define LBS_NOINTEGRALHEIGHT 0x0100L
216 #define LBS_EXTENDEDSEL 0x0800L
217 #endif
218 
265 #define LB_ADDSTRING 0xF180
266 
310 #define LB_INSERTSTRING 0xF181
311 
331 #define LB_DELETESTRING 0xF182
332 
337 #define LB_SELITEMRANGEEX 0xF183
338 
355 #define LB_RESETCONTENT 0xF184
356 
379 #define LB_GETSEL 0xF187
380 
406 #define LB_SETSEL 0xF185
407 
427 #define LB_GETCURSEL 0xF188
428 
449 #define LB_SETCURSEL 0xF186
450 
477 #define LB_GETTEXT 0xF189
478 
498 #define LB_GETTEXTLEN 0xF18A
499 
516 #define LB_GETCOUNT 0xF18B
517 
522 #define LB_SELECTSTRING 0xF18C
523 
528 #define LB_DIR 0xF18D
529 
547 #define LB_GETTOPINDEX 0xF18E
548 
573 #define LB_FINDSTRING 0xF18F
574 
591 #define LB_GETSELCOUNT 0xF190
592 
615 #define LB_GETSELITEMS 0xF191
616 
621 #define LB_SETTABSTOPS 0xF192
622 
627 #define LB_GETHORIZONTALEXTENT 0xF193
628 
633 #define LB_SETHORIZONTALEXTENT 0xF194
634 
639 #define LB_SETCOLUMNWIDTH 0xF195
640 
645 #define LB_ADDFILE 0xF196
646 
668 #define LB_SETTOPINDEX 0xF197
669 
693 #define LB_GETITEMRECT 0xF198
694 
722 #define LB_GETITEMDATA 0xF199
723 
751 #define LB_SETITEMDATA 0xF19A
752 
753 #define LB_SELITEMRANGE 0xF19B
754 #define LB_SETANCHORINDEX 0xF19C
755 #define LB_GETANCHORINDEX 0xF19D
756 
772 #define LB_SETCARETINDEX 0xF19E
773 
791 #define LB_GETCARETINDEX 0xF19F
792 
812 #define LB_SETITEMHEIGHT 0xF1A0
813 
830 #define LB_GETITEMHEIGHT 0xF1A1
831 
853 #define LB_FINDSTRINGEXACT 0xF1A2
854 
859 #define LB_SETLOCALE 0xF1A5
860 
864 #define LB_GETLOCALE 0xF1A6
865 
869 #define LB_SETCOUNT 0xF1A7
870 
874 #define LB_INITSTORAGE 0xF1A8
875 
879 #define LB_ITEMFROMPOINT 0xF1A9
880 
901 #define LB_SETTEXT 0xF1AA
902 
924 #define LB_GETCHECKMARK 0xF1AB
925 
949 #define LB_SETCHECKMARK 0xF1AC
950 
974 #define LB_GETITEMADDDATA 0xF1AD
975 
999 #define LB_SETITEMADDDATA 0xF1AE
1000 
1030 #define LB_SETSTRCMPFUNC 0xF1AF
1031 
1048 #define LB_SETITEMDISABLE 0xF1B0
1049 
1066 #define LB_GETITEMDISABLE 0xF1B1
1067 
1084 #define LB_SETITEMBOLD 0xF1B2
1085 
1128 #define LB_MULTIADDITEM 0xF1B3
1129 
1130 #define LB_MSGMAX 0xF1B4
1131 
1146 #define LBN_ERRSPACE 255
1147 
1156 #define LBN_SELCHANGE 1
1157 
1165 #define LBN_DBLCLK 2
1166 
1175 #define LBN_SELCANCEL 3
1176 
1184 #define LBN_SETFOCUS 4
1185 
1193 #define LBN_KILLFOCUS 5
1194 
1199 #define LBN_CLICKCHECKMARK 6
1200 
1205 #define LBN_CLICKED 7
1206 
1211 #define LBN_ENTER 8
1212 
1219 #ifdef __cplusplus
1220 }
1221 #endif /* __cplusplus */
1222 
1223 #endif /* _MGUI_CTRL_LISTBOX_H */
1224 
char * string
Definition: listbox.h:109
LISTBOXITEMINFO * PLISTBOXITEMINFO
Data type of the pointer to a LISTBOXITEMINFO.
Definition: listbox.h:137
struct _LISTBOXITEMINFO LISTBOXITEMINFO
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:555
GHANDLE HICON
Handle to icon.
Definition: common.h:378