menubutton.h

Go to the documentation of this file.
00001 
00019 /*
00020  * $Id: menubutton.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_MENUBUTTON_H
00030 #define _MGUI_CTRL_MENUBUTTON_H
00031  
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif  /* __cplusplus */
00036 
00051 #define CTRL_MENUBTN        ("menubutton")
00052 
00057 #define CTRL_MENUBUTTON     ("menubutton")
00058 
00060 #define MB_OKAY                 0
00061 
00062 #define MB_ERR                  -1
00063 
00064 #define MB_INV_ITEM             -2
00065 
00066 #define MB_ERR_SPACE            -3
00067 
00069 #define MB_WHICH_TEXT           0x01
00070 
00071 #define MB_WHICH_BMP            0x02
00072 
00073 #define MB_WHICH_ATTDATA        0x04
00074 
00076 typedef struct _MENUBUTTONITEM
00077 {
00086     DWORD           which;
00088     const char*     text;
00090     PBITMAP         bmp;
00092     DWORD           data;
00093 } MENUBUTTONITEM;
00094 
00099 typedef MENUBUTTONITEM* PMENUBUTTONITEM;
00100 
00111 #define MBS_SORT                0x0001
00112 
00117 #define MBS_LEFTARROW           0x0002
00118 
00123 #define MBS_NOBUTTON            0x0004
00124 
00129 #define MBS_ALIGNLEFT           0x0000
00130 
00135 #define MBS_ALIGNRIGHT          0x0010
00136 
00141 #define MBS_ALIGNCENTER         0x0020
00142 
00147 #define MBS_ALIGNMASK           0x00F0
00148 
00181 #define MBM_ADDITEM                 0xF200
00182 
00199 #define MBM_DELITEM                 0xF201
00200 
00214 #define MBM_RESETCTRL               0xF202
00215 
00238 #define MBM_SETITEMDATA             0xF203
00239 
00259 #define MBM_GETITEMDATA             0xF204
00260 
00275 #define MBM_GETCURITEM              0xF206
00276 
00293 #define MBM_SETCURITEM              0xF207
00294 
00324 #define MBM_SETSTRCMPFUNC           0xF208
00325 
00326 /* Internal */
00327 #define MBM_MSGMAX                  0xF210
00328 
00340 #define MBN_ERRSPACE            255
00341 
00346 #define MBN_CHANGED             1
00347 
00352 #define MBN_SELECTED            2
00353 
00358 #define MBN_STARTMENU           4
00359 
00364 #define MBN_ENDMENU             5
00365 
00370 #define MBN_CLICKED             6
00371 
00378 #ifdef __cplusplus
00379 }
00380 #endif  /* __cplusplus */
00381 
00382 #endif /* _MGUI_CTRL_MENUBUTTON_H */
00383 
Generated on Thu Apr 7 16:01:41 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3