MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
A mature and proven cross-platform GUI system for embedded and smart IoT devices
button.h
Go to the documentation of this file.
1 //
3 // IMPORTANT NOTICE
4 //
5 // The following open source license statement does not apply to any
6 // entity in the Exception List published by FMSoft.
7 //
8 // For more information, please visit:
9 //
10 // https://www.fmsoft.cn/exception-list
11 //
13 
55 /*
56  * $Id: button.h 10690 2008-08-18 09:32:47Z weiym $
57  *
58  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
59  * pSOS, ThreadX, NuCleus, OSE, and Win32.
60  */
61 
62 #ifndef _MGUI_CTRL_BUTTON_H
63 #define _MGUI_CTRL_BUTTON_H
64 
65 
66 #ifdef __cplusplus
67 extern "C" {
68 #endif /* __cplusplus */
69 
84 #define BTN_WIDTH_BORDER 4
85 
90 #define CTRL_BUTTON ("button")
91 
103 #define BS_PUSHBUTTON 0x00000000L
104 
116 #define BS_DEFPUSHBUTTON 0x00000001L
117 
128 #define BS_CHECKBOX 0x00000002L
129 
138 #define BS_AUTOCHECKBOX 0x00000003L
139 
151 #define BS_RADIOBUTTON 0x00000004L
152 
163 #define BS_AUTORADIOBUTTON 0x00000005L
164 
174 #define BS_3STATE 0x00000006L
175 
184 #define BS_AUTO3STATE 0x00000007L
185 /* Not use */
186 #define BS_GROUPBOX 0x00000008L
187 /* Not use */
188 #define BS_USERBUTTON 0x00000009L
189 
190 
197 #define BS_OWNERDRAW 0x0000000AL
198 
203 #define BS_TYPEMASK 0x0000000FL
204 
209 #define BS_TEXT 0x00000000L
210 
218 #define BS_LEFTTEXT 0x00000020L
219 
224 #define BS_ICON 0x00000040L
225 
230 #define BS_BITMAP 0x00000080L
231 
235 #define BS_CONTENTMASK 0x000000F0L
236 
245 #define BS_LEFT 0x00000100L
246 
255 #define BS_RIGHT 0x00000200L
256 
261 #define BS_CENTER 0x00000300L
262 
267 #define BS_TOP 0x00000400L
268 
273 #define BS_BOTTOM 0x00000800L
274 
279 #define BS_VCENTER 0x00000C00L
280 
285 #define BS_REALSIZEIMAGE 0x00000F00L
286 
291 #define BS_ALIGNMASK 0x00000F00L
292 
301 #define BS_PUSHLIKE 0x00001000L
302 
310 #define BS_MULTLINE 0x00002000L
311 
316 #define BS_NOTIFY 0x00004000L
317 
322 #define BS_CHECKED 0x00004000L
323 
328 #define BS_FLAT 0x00008000L
329 
334 #define BS_NOBORDER 0x00010000L
335 
341 #define BS_RIGHTBUTTON BS_LEFTTEXT
342 
355 #define BST_POSE_MASK 0x0003
356 
361 #define BST_NORMAL 0x0000
362 
367 #define BST_HILITE 0x0001
368 
373 #define BST_PUSHED 0x0002
374 
379 #define BST_DISABLE 0x0003
380 
381 
387 #define BST_CHECK_MASK 0x000c
388 
393 #define BST_UNCHECKED 0x0000
394 
399 #define BST_CHECKED 0x0004
400 
406 #define BST_INDETERMINATE 0x0008
407 
412 #define BST_FOCUS 0x0010
413 
442 #define BM_GETCHECK 0xF0F0
443 
468 #define BM_SETCHECK 0xF0F1
469 
487 #define BM_GETSTATE 0xF0F2
488 
512 #define BM_SETSTATE 0xF0F3
513 
534 #define BM_SETSTYLE 0xF0F4
535 
549 #define BM_CLICK 0xF0F5
550 
551 
568 #define BM_ENABLE 0xF0F6
569 
594 #define BM_GETIMAGE 0xF0F7
595 
596 #define BM_IMAGE_BITMAP 1
597 #define BM_IMAGE_ICON 2
598 
613 #define BM_SETIMAGE 0xF0F8
614 
615 #define BM_MSGMAX 0xF100
616 
628 #define BN_CLICKED 0
629 #define BN_DOUBLECLICKED 1
630 
634 #define BN_DBLCLK BN_DOUBLECLICKED
635 
641 #define BN_HILITE 2
642 
648 #define BN_UNHILITE 3
649 
654 #define BN_PUSHED 4
655 
660 #define BN_UNPUSHED 5
661 
667 #define BN_DISABLE 6
668 
674 #define BN_ENABLE 7
675 
680 #define BN_SETFOCUS 8
681 
686 #define BN_KILLFOCUS 9
687 
688 #define BN_PAINT 10 /* not supported */
689 
696 #ifdef __cplusplus
697 }
698 #endif /* __cplusplus */
699 
700 #endif /* _MGUI_CTRL_BUTTON_H */
701