MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
button.h
Go to the documentation of this file.
1 
43 /*
44  * $Id: button.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_BUTTON_H
51 #define _MGUI_CTRL_BUTTON_H
52 
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif /* __cplusplus */
57 
72 #define BTN_WIDTH_BORDER 4
73 
78 #define CTRL_BUTTON ("button")
79 
91 #define BS_PUSHBUTTON 0x00000000L
92 
104 #define BS_DEFPUSHBUTTON 0x00000001L
105 
116 #define BS_CHECKBOX 0x00000002L
117 
126 #define BS_AUTOCHECKBOX 0x00000003L
127 
139 #define BS_RADIOBUTTON 0x00000004L
140 
151 #define BS_AUTORADIOBUTTON 0x00000005L
152 
162 #define BS_3STATE 0x00000006L
163 
172 #define BS_AUTO3STATE 0x00000007L
173 /* Not use */
174 #define BS_GROUPBOX 0x00000008L
175 /* Not use */
176 #define BS_USERBUTTON 0x00000009L
177 
178 
185 #define BS_OWNERDRAW 0x0000000AL
186 
191 #define BS_TYPEMASK 0x0000000FL
192 
197 #define BS_TEXT 0x00000000L
198 
206 #define BS_LEFTTEXT 0x00000020L
207 
212 #define BS_ICON 0x00000040L
213 
218 #define BS_BITMAP 0x00000080L
219 
223 #define BS_CONTENTMASK 0x000000F0L
224 
233 #define BS_LEFT 0x00000100L
234 
243 #define BS_RIGHT 0x00000200L
244 
249 #define BS_CENTER 0x00000300L
250 
255 #define BS_TOP 0x00000400L
256 
261 #define BS_BOTTOM 0x00000800L
262 
267 #define BS_VCENTER 0x00000C00L
268 
273 #define BS_REALSIZEIMAGE 0x00000F00L
274 
279 #define BS_ALIGNMASK 0x00000F00L
280 
289 #define BS_PUSHLIKE 0x00001000L
290 
298 #define BS_MULTLINE 0x00002000L
299 
304 #define BS_NOTIFY 0x00004000L
305 
310 #define BS_CHECKED 0x00004000L
311 
316 #define BS_FLAT 0x00008000L
317 
322 #define BS_NOBORDER 0x00010000L
323 
329 #define BS_RIGHTBUTTON BS_LEFTTEXT
330 
343 #define BST_POSE_MASK 0x0003
344 
349 #define BST_NORMAL 0x0000
350 
355 #define BST_HILITE 0x0001
356 
361 #define BST_PUSHED 0x0002
362 
367 #define BST_DISABLE 0x0003
368 
369 
375 #define BST_CHECK_MASK 0x000c
376 
381 #define BST_UNCHECKED 0x0000
382 
387 #define BST_CHECKED 0x0004
388 
394 #define BST_INDETERMINATE 0x0008
395 
400 #define BST_FOCUS 0x0010
401 
430 #define BM_GETCHECK 0xF0F0
431 
456 #define BM_SETCHECK 0xF0F1
457 
475 #define BM_GETSTATE 0xF0F2
476 
500 #define BM_SETSTATE 0xF0F3
501 
522 #define BM_SETSTYLE 0xF0F4
523 
537 #define BM_CLICK 0xF0F5
538 
539 
556 #define BM_ENABLE 0xF0F6
557 
582 #define BM_GETIMAGE 0xF0F7
583 
584 #define BM_IMAGE_BITMAP 1
585 #define BM_IMAGE_ICON 2
586 
601 #define BM_SETIMAGE 0xF0F8
602 
603 #define BM_MSGMAX 0xF100
604 
616 #define BN_CLICKED 0
617 #define BN_DOUBLECLICKED 1
618 
622 #define BN_DBLCLK BN_DOUBLECLICKED
623 
629 #define BN_HILITE 2
630 
636 #define BN_UNHILITE 3
637 
642 #define BN_PUSHED 4
643 
648 #define BN_UNPUSHED 5
649 
655 #define BN_DISABLE 6
656 
662 #define BN_ENABLE 7
663 
668 #define BN_SETFOCUS 8
669 
674 #define BN_KILLFOCUS 9
675 
676 #define BN_PAINT 10 /* not supported */
677 
684 #ifdef __cplusplus
685 }
686 #endif /* __cplusplus */
687 
688 #endif /* _MGUI_CTRL_BUTTON_H */
689