Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

listbox.h

Go to the documentation of this file.
00001 
00018 /*
00019  * $Id: listbox.h,v 1.2.12.5 2006/06/05 08:51:21 xwyan Exp $
00020  *
00021  *             MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks, 
00022  *                     pSOS, ThreadX, NuCleus, OSE, and Win32 version 1.6.x
00023  *             Copyright (C) 2002-2006 Feynman Software.
00024  *             Copyright (C) 1999-2002 Wei Yongming.
00025  */
00026 
00027 #ifndef _MGUI_CTRL_LISTBOX_H
00028 #define _MGUI_CTRL_LISTBOX_H
00029  
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif  /* __cplusplus */
00033 
00048 #define CTRL_LISTBOX        ("listbox")
00049 
00051 #define LB_OKAY                 0
00052 
00053 #define LB_ERR                  (-3)
00054 
00055 #define LB_ERRSPACE             (-2)
00056 
00057 #define CMFLAG_BLANK            0x0000
00058 #define CMFLAG_CHECKED          0x0001
00059 #define CMFLAG_PARTCHECKED      0x0002
00060 
00066 #define CMFLAG_MASK             0x000F
00067 
00068 #define IMGFLAG_BITMAP          0x0010
00069 
00071 typedef struct _LISTBOXITEMINFO
00072 {
00074     char* string;
00075 
00088     DWORD   cmFlag;         /* check mark flag */
00089 
00091     HICON   hIcon;          /* handle to icon */
00092 } LISTBOXITEMINFO;
00093 
00098 typedef LISTBOXITEMINFO* PLISTBOXITEMINFO;
00099 
00112 #define LBS_NOTIFY              0x0001L
00113 
00121 #define LBS_SORT                0x0002L
00122 
00127 #define LBS_MULTIPLESEL         0x0008L
00128 
00133 #define LBS_CHECKBOX            0x1000L
00134 
00139 #define LBS_USEICON             0x2000L
00140 
00147 #define LBS_AUTOCHECK           0x4000L
00148 
00154 #define LBS_AUTOCHECKBOX        (LBS_CHECKBOX | LBS_AUTOCHECK)
00155 
00160 #define LBS_SBALWAYS            0x8000L
00161 
00162 
00163 #define LBS_OWNERDRAWFIXED      0x0010L
00164 #define LBS_OWNERDRAWVARIABLE   0x0020L
00165 #define LBS_USETABSTOPS         0x0080L
00166 #define LBS_MULTICOLUMN         0x0200L
00167 #define LBS_WANTKEYBOARDINPUT   0x0400L
00168 #define LBS_NOREDRAW            0x0004L
00169 #define LBS_HASSTRINGS          0x0040L
00170 #define LBS_NOINTEGRALHEIGHT    0x0100L
00171 #define LBS_EXTENDEDSEL         0x0800L
00172 
00219 #define LB_ADDSTRING            0xF180
00220 
00264 #define LB_INSERTSTRING         0xF181
00265 
00285 #define LB_DELETESTRING         0xF182
00286 
00287 #define LB_SELITEMRANGEEX       0xF183
00288 
00305 #define LB_RESETCONTENT         0xF184
00306 
00329 #define LB_GETSEL               0xF187
00330 
00356 #define LB_SETSEL               0xF185
00357 
00377 #define LB_GETCURSEL            0xF188
00378 
00399 #define LB_SETCURSEL            0xF186
00400 
00427 #define LB_GETTEXT              0xF189
00428 
00448 #define LB_GETTEXTLEN           0xF18A
00449 
00466 #define LB_GETCOUNT             0xF18B
00467 
00468 #define LB_SELECTSTRING         0xF18C
00469 #define LB_DIR                  0xF18D
00470 
00488 #define LB_GETTOPINDEX          0xF18E
00489 
00514 #define LB_FINDSTRING           0xF18F
00515 
00532 #define LB_GETSELCOUNT          0xF190
00533 
00556 #define LB_GETSELITEMS          0xF191
00557 
00558 #define LB_SETTABSTOPS          0xF192
00559 #define LB_GETHORIZONTALEXTENT  0xF193
00560 #define LB_SETHORIZONTALEXTENT  0xF194
00561 #define LB_SETCOLUMNWIDTH       0xF195
00562 #define LB_ADDFILE              0xF196
00563 
00585 #define LB_SETTOPINDEX          0xF197
00586 
00610 #define LB_GETITEMRECT          0xF198
00611 
00639 #define LB_GETITEMDATA          0xF199
00640 
00668 #define LB_SETITEMDATA          0xF19A
00669 
00670 #define LB_SELITEMRANGE         0xF19B
00671 #define LB_SETANCHORINDEX       0xF19C
00672 #define LB_GETANCHORINDEX       0xF19D
00673 
00689 #define LB_SETCARETINDEX        0xF19E
00690 
00708 #define LB_GETCARETINDEX        0xF19F
00709 
00729 #define LB_SETITEMHEIGHT        0xF1A0
00730 
00747 #define LB_GETITEMHEIGHT        0xF1A1
00748 
00770 #define LB_FINDSTRINGEXACT      0xF1A2
00771 
00772 #define LB_SETLOCALE            0xF1A5
00773 #define LB_GETLOCALE            0xF1A6
00774 #define LB_SETCOUNT             0xF1A7
00775 #define LB_INITSTORAGE          0xF1A8
00776 #define LB_ITEMFROMPOINT        0xF1A9
00777 
00798 #define LB_SETTEXT              0xF1AA
00799 
00821 #define LB_GETCHECKMARK         0xF1AB
00822 
00846 #define LB_SETCHECKMARK         0xF1AC
00847 
00871 #define LB_GETITEMADDDATA       0xF1AD
00872 
00896 #define LB_SETITEMADDDATA       0xF1AE
00897 
00927 #define LB_SETSTRCMPFUNC        0xF1AF
00928 
00929 #define LB_MSGMAX               0xF1B0
00930 
00945 #define LBN_ERRSPACE            255
00946 
00955 #define LBN_SELCHANGE           1
00956 
00964 #define LBN_DBLCLK              2
00965 
00974 #define LBN_SELCANCEL           3
00975 
00983 #define LBN_SETFOCUS            4
00984 
00992 #define LBN_KILLFOCUS           5
00993 
00998 #define LBN_CLICKCHECKMARK      6
00999 
01004 #define LBN_CLICKED             7
01005 
01010 #define LBN_ENTER               8
01011 
01018 #ifdef __cplusplus
01019 }
01020 #endif  /* __cplusplus */
01021 
01022 #endif /* _MGUI_CTRL_LISTBOX_H */
01023 

Generated on Mon Jun 26 13:54:27 2006 for MiniGUI V1.6.9 API Reference by  doxygen 1.4.2