MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
menubutton.h
Go to the documentation of this file.
1 
43 /*
44  * $Id: menubutton.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_MENUBUTTON_H
51 #define _MGUI_CTRL_MENUBUTTON_H
52 
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif /* __cplusplus */
57 
72 #define CTRL_MENUBTN ("menubutton")
73 
78 #define CTRL_MENUBUTTON ("menubutton")
79 
81 #define MB_OKAY 0
82 
83 #define MB_ERR -1
84 
85 #define MB_INV_ITEM -2
86 
87 #define MB_ERR_SPACE -3
88 
90 #define MB_WHICH_TEXT 0x01
91 
92 #define MB_WHICH_BMP 0x02
93 
94 #define MB_WHICH_ATTDATA 0x04
95 
97 typedef struct _MENUBUTTONITEM
98 {
109  const char* text;
115 
121 
132 #define MBS_SORT 0x0001
133 
138 #define MBS_LEFTARROW 0x0002
139 
144 #define MBS_NOBUTTON 0x0004
145 
150 #define MBS_ALIGNLEFT 0x0000
151 
156 #define MBS_ALIGNRIGHT 0x0010
157 
162 #define MBS_ALIGNCENTER 0x0020
163 
168 #define MBS_ALIGNMASK 0x00F0
169 
202 #define MBM_ADDITEM 0xF200
203 
220 #define MBM_DELITEM 0xF201
221 
235 #define MBM_RESETCTRL 0xF202
236 
259 #define MBM_SETITEMDATA 0xF203
260 
280 #define MBM_GETITEMDATA 0xF204
281 
296 #define MBM_GETCURITEM 0xF206
297 
314 #define MBM_SETCURITEM 0xF207
315 
345 #define MBM_SETSTRCMPFUNC 0xF208
346 
347 /* Internal */
348 #define MBM_MSGMAX 0xF210
349 
361 #define MBN_ERRSPACE 255
362 
367 #define MBN_CHANGED 1
368 
373 #define MBN_SELECTED 2
374 
379 #define MBN_STARTMENU 4
380 
385 #define MBN_ENDMENU 5
386 
391 #define MBN_CLICKED 6
392 
399 #ifdef __cplusplus
400 }
401 #endif /* __cplusplus */
402 
403 #endif /* _MGUI_CTRL_MENUBUTTON_H */
404 
const char * text
Definition: menubutton.h:109
MENUBUTTONITEM * PMENUBUTTONITEM
Data type of the pointer to a MENUBUTTONITEM.
Definition: menubutton.h:120
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:555
Definition: gdi.h:7382
struct _MENUBUTTONITEM MENUBUTTONITEM