button.h

Go to the documentation of this file.
00001 
00019 /*
00020  * $Id: button.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_BUTTON_H
00030 #define _MGUI_CTRL_BUTTON_H
00031  
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif  /* __cplusplus */
00036 
00051 #define BTN_WIDTH_BORDER    4
00052 
00057 #define CTRL_BUTTON         ("button")
00058 
00070 #define BS_PUSHBUTTON       0x00000000L
00071 
00083 #define BS_DEFPUSHBUTTON    0x00000001L
00084 
00095 #define BS_CHECKBOX         0x00000002L
00096 
00105 #define BS_AUTOCHECKBOX     0x00000003L
00106 
00118 #define BS_RADIOBUTTON      0x00000004L
00119 
00130 #define BS_AUTORADIOBUTTON  0x00000005L
00131 
00141 #define BS_3STATE           0x00000006L
00142 
00151 #define BS_AUTO3STATE       0x00000007L
00152 /* Not use */
00153 #define BS_GROUPBOX         0x00000008L
00154 /* Not use */
00155 #define BS_USERBUTTON       0x00000009L
00156 
00157 
00164 #define BS_OWNERDRAW        0x0000000AL
00165 
00170 #define BS_TYPEMASK         0x0000000FL
00171 
00176 #define BS_TEXT             0x00000000L
00177 
00185 #define BS_LEFTTEXT         0x00000020L
00186 
00191 #define BS_ICON             0x00000040L
00192 
00197 #define BS_BITMAP           0x00000080L
00198 
00202 #define BS_CONTENTMASK      0x000000F0L
00203 
00212 #define BS_LEFT             0x00000100L
00213 
00222 #define BS_RIGHT            0x00000200L
00223 
00228 #define BS_CENTER           0x00000300L
00229 
00234 #define BS_TOP              0x00000400L
00235 
00240 #define BS_BOTTOM           0x00000800L
00241 
00246 #define BS_VCENTER          0x00000C00L
00247 
00252 #define BS_REALSIZEIMAGE    0x00000F00L
00253 
00258 #define BS_ALIGNMASK        0x00000F00L
00259 
00268 #define BS_PUSHLIKE         0x00001000L
00269 
00277 #define BS_MULTLINE         0x00002000L
00278 
00283 #define BS_NOTIFY           0x00004000L
00284 
00289 #define BS_CHECKED          0x00004000L
00290 
00295 #define BS_FLAT             0x00008000L
00296 
00301 #define BS_NOBORDER         0x00010000L
00302 
00308 #define BS_RIGHTBUTTON      BS_LEFTTEXT
00309 
00322 #define BST_POSE_MASK        0x0003
00323 
00328 #define BST_NORMAL      0x0000
00329 
00334 #define BST_HILITE      0x0001
00335 
00340 #define BST_PUSHED      0x0002
00341 
00346 #define BST_DISABLE     0x0003
00347 
00348 
00354 #define BST_CHECK_MASK      0x000c
00355 
00360 #define BST_UNCHECKED       0x0000
00361 
00366 #define BST_CHECKED         0x0004
00367 
00373 #define BST_INDETERMINATE   0x0008
00374 
00379 #define BST_FOCUS           0x0010
00380 
00409 #define BM_GETCHECK             0xF0F0
00410 
00435 #define BM_SETCHECK             0xF0F1
00436 
00454 #define BM_GETSTATE             0xF0F2
00455 
00479 #define BM_SETSTATE             0xF0F3
00480 
00501 #define BM_SETSTYLE             0xF0F4
00502 
00516 #define BM_CLICK                0xF0F5
00517 
00518 
00535 #define BM_ENABLE               0xF0F6
00536 
00561 #define BM_GETIMAGE             0xF0F7
00562 
00563 #define BM_IMAGE_BITMAP         1
00564 #define BM_IMAGE_ICON           2
00565     
00580 #define BM_SETIMAGE             0xF0F8
00581 
00582 #define BM_MSGMAX               0xF100
00583 
00595 #define BN_CLICKED          0
00596 #define BN_DOUBLECLICKED    1
00597 
00601 #define BN_DBLCLK           BN_DOUBLECLICKED
00602 
00608 #define BN_HILITE           2
00609 
00615 #define BN_UNHILITE         3
00616 
00621 #define BN_PUSHED           4
00622 
00627 #define BN_UNPUSHED         5
00628 
00634 #define BN_DISABLE          6
00635 
00641 #define BN_ENABLE           7
00642 
00647 #define BN_SETFOCUS         8
00648 
00653 #define BN_KILLFOCUS        9
00654 
00655 #define BN_PAINT            10   /* not supported */
00656 
00663 #ifdef __cplusplus
00664 }
00665 #endif  /* __cplusplus */
00666 
00667 #endif /* _MGUI_CTRL_BUTTON_H */
00668 
Generated on Thu Apr 7 16:01:40 2011 for MiniGUI V3.0.12 API Reference by  doxygen 1.6.3