listbox.h

Go to the documentation of this file.
00001 
00019 /*
00020  * $Id: listbox.h 10690 2008-08-18 09:32:47Z weiym $
00021  *
00022  *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks, 
00023  *                     pSOS, ThreadX, NuCleus, OSE, and Win32.
00024  *
00025  *             Copyright (C) 2002-2008 Feynman Software.
00026  *             Copyright (C) 1999-2002 Wei Yongming.
00027  */
00028 
00029 #ifndef _MGUI_CTRL_LISTBOX_H
00030 #define _MGUI_CTRL_LISTBOX_H
00031  
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif  /* __cplusplus */
00036 
00051 #define CTRL_LISTBOX        ("listbox")
00052 
00054 #define LB_OKAY                 0
00055 
00056 #define LB_ERR                  (-3)
00057 
00058 #define LB_ERRSPACE             (-2)
00059 
00060 #define CMFLAG_BLANK            0x0000
00061 #define CMFLAG_CHECKED          0x0001
00062 #define CMFLAG_PARTCHECKED      0x0002
00063 
00069 #define CMFLAG_MASK             0x000F
00070 
00075 #define IMGFLAG_BITMAP          0x0010
00076 
00082 #define LBIS_SIGNIFICANT        0x0020
00083 
00085 typedef struct _LISTBOXITEMINFO
00086 {
00088     char* string;
00089 
00106     DWORD   cmFlag;         /* check mark flag */
00107 
00109     HICON   hIcon;          /* handle to icon */
00110 } LISTBOXITEMINFO;
00111 
00116 typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
00117 
00130 #define LBS_NOTIFY              0x0001L
00131 
00139 #define LBS_SORT                0x0002L
00140 
00145 #define LBS_MULTIPLESEL         0x0008L
00146 
00151 #define LBS_CHECKBOX            0x1000L
00152 
00157 #define LBS_USEICON             0x2000L
00158 
00165 #define LBS_AUTOCHECK           0x4000L
00166 
00172 #define LBS_AUTOCHECKBOX        (LBS_CHECKBOX | LBS_AUTOCHECK)
00173 
00178 #define LBS_SBALWAYS            0x8000L
00179 
00185 #define LBS_MOUSEFOLLOW         0x0010L
00186 #if 0
00187 #define LBS_OWNERDRAWFIXED      0x0010L
00188 #define LBS_OWNERDRAWVARIABLE   0x0020L
00189 #define LBS_USETABSTOPS         0x0080L
00190 #define LBS_MULTICOLUMN         0x0200L
00191 #define LBS_WANTKEYBOARDINPUT   0x0400L
00192 #define LBS_NOREDRAW            0x0004L
00193 #define LBS_HASSTRINGS          0x0040L
00194 #define LBS_NOINTEGRALHEIGHT    0x0100L
00195 #define LBS_EXTENDEDSEL         0x0800L
00196 #endif
00197 
00244 #define LB_ADDSTRING            0xF180
00245 
00289 #define LB_INSERTSTRING         0xF181
00290 
00310 #define LB_DELETESTRING         0xF182
00311 
00316 #define LB_SELITEMRANGEEX       0xF183
00317 
00334 #define LB_RESETCONTENT         0xF184
00335 
00358 #define LB_GETSEL               0xF187
00359 
00385 #define LB_SETSEL               0xF185
00386 
00406 #define LB_GETCURSEL            0xF188
00407 
00428 #define LB_SETCURSEL            0xF186
00429 
00456 #define LB_GETTEXT              0xF189
00457 
00477 #define LB_GETTEXTLEN           0xF18A
00478 
00495 #define LB_GETCOUNT             0xF18B
00496 
00501 #define LB_SELECTSTRING         0xF18C
00502 
00507 #define LB_DIR                  0xF18D
00508 
00526 #define LB_GETTOPINDEX          0xF18E
00527 
00552 #define LB_FINDSTRING           0xF18F
00553 
00570 #define LB_GETSELCOUNT          0xF190
00571 
00594 #define LB_GETSELITEMS          0xF191
00595 
00600 #define LB_SETTABSTOPS          0xF192
00601 
00606 #define LB_GETHORIZONTALEXTENT  0xF193
00607 
00612 #define LB_SETHORIZONTALEXTENT  0xF194
00613 
00618 #define LB_SETCOLUMNWIDTH       0xF195
00619 
00624 #define LB_ADDFILE              0xF196
00625 
00647 #define LB_SETTOPINDEX          0xF197
00648 
00672 #define LB_GETITEMRECT          0xF198
00673 
00701 #define LB_GETITEMDATA          0xF199
00702 
00730 #define LB_SETITEMDATA          0xF19A
00731 
00732 #define LB_SELITEMRANGE         0xF19B
00733 #define LB_SETANCHORINDEX       0xF19C
00734 #define LB_GETANCHORINDEX       0xF19D
00735 
00751 #define LB_SETCARETINDEX        0xF19E
00752 
00770 #define LB_GETCARETINDEX        0xF19F
00771 
00791 #define LB_SETITEMHEIGHT        0xF1A0
00792 
00809 #define LB_GETITEMHEIGHT        0xF1A1
00810 
00832 #define LB_FINDSTRINGEXACT      0xF1A2
00833 
00838 #define LB_SETLOCALE            0xF1A5
00839 
00843 #define LB_GETLOCALE            0xF1A6
00844 
00848 #define LB_SETCOUNT             0xF1A7
00849 
00853 #define LB_INITSTORAGE          0xF1A8
00854 
00858 #define LB_ITEMFROMPOINT        0xF1A9
00859 
00880 #define LB_SETTEXT              0xF1AA
00881 
00903 #define LB_GETCHECKMARK         0xF1AB
00904 
00928 #define LB_SETCHECKMARK         0xF1AC
00929 
00953 #define LB_GETITEMADDDATA       0xF1AD
00954 
00978 #define LB_SETITEMADDDATA       0xF1AE
00979 
01009 #define LB_SETSTRCMPFUNC        0xF1AF
01010 
01027 #define LB_SETITEMDISABLE       0xF1B0
01028 
01045 #define LB_GETITEMDISABLE       0xF1B1
01046 
01063 #define LB_SETITEMBOLD          0xF1B2
01064 
01107 #define LB_MULTIADDITEM         0xF1B3
01108 
01109 #define LB_MSGMAX               0xF1B4
01110 
01125 #define LBN_ERRSPACE            255
01126 
01135 #define LBN_SELCHANGE           1
01136 
01144 #define LBN_DBLCLK              2
01145 
01154 #define LBN_SELCANCEL           3
01155 
01163 #define LBN_SETFOCUS            4
01164 
01172 #define LBN_KILLFOCUS           5
01173 
01178 #define LBN_CLICKCHECKMARK      6
01179 
01184 #define LBN_CLICKED             7
01185 
01190 #define LBN_ENTER               8
01191 
01198 #ifdef __cplusplus
01199 }
01200 #endif  /* __cplusplus */
01201 
01202 #endif /* _MGUI_CTRL_LISTBOX_H */
01203 
Generated on Thu Apr 7 15:58:31 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3