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

menubutton.h

Go to the documentation of this file.
00001 
00018 /*
00019  * $Id: menubutton.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_MENUBUTTON_H
00028 #define _MGUI_CTRL_MENUBUTTON_H
00029  
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif  /* __cplusplus */
00033 
00048 #define CTRL_MENUBTN        ("menubutton")
00049 
00054 #define CTRL_MENUBUTTON     ("menubutton")
00055 
00057 #define MB_OKAY                 0
00058 
00059 #define MB_ERR                  -1
00060 
00061 #define MB_INV_ITEM             -2
00062 
00063 #define MB_ERR_SPACE            -3
00064 
00066 #define MB_WHICH_TEXT           0x01
00067 
00068 #define MB_WHICH_BMP            0x02
00069 
00070 #define MB_WHICH_ATTDATA        0x04
00071 
00073 typedef struct _MENUBUTTONITEM
00074 {
00083     DWORD           which;
00085     const char*     text;
00087     PBITMAP         bmp;
00089     DWORD           data;
00090 } MENUBUTTONITEM;
00091 
00096 typedef MENUBUTTONITEM* PMENUBUTTONITEM;
00097 
00108 #define MBS_SORT                0x0001
00109 
00114 #define MBS_LEFTARROW           0x0002
00115 
00120 #define MBS_NOBUTTON            0x0004
00121 
00126 #define MBS_ALIGNLEFT           0x0000
00127 
00132 #define MBS_ALIGNRIGHT          0x0010
00133 
00138 #define MBS_ALIGNCENTER         0x0020
00139 
00144 #define MBS_ALIGNMASK           0x00F0
00145 
00178 #define MBM_ADDITEM                 0xF200
00179 
00196 #define MBM_DELITEM                 0xF201
00197 
00211 #define MBM_RESETCTRL               0xF202
00212 
00235 #define MBM_SETITEMDATA             0xF203
00236 
00256 #define MBM_GETITEMDATA             0xF204
00257 
00272 #define MBM_GETCURITEM              0xF206
00273 
00290 #define MBM_SETCURITEM              0xF207
00291 
00321 #define MBM_SETSTRCMPFUNC           0xF208
00322 
00323 /* Internal */
00324 #define MBM_MSGMAX                  0xF210
00325 
00337 #define MBN_ERRSPACE            255
00338 
00343 #define MBN_CHANGED             1
00344 
00349 #define MBN_SELECTED            2
00350 
00355 #define MBN_STARTMENU           4
00356 
00361 #define MBN_ENDMENU             5
00362 
00367 #define MBN_CLICKED             6
00368 
00375 #ifdef __cplusplus
00376 }
00377 #endif  /* __cplusplus */
00378 
00379 #endif /* _MGUI_CTRL_MENUBUTTON_H */
00380 

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