mspinner.h

Go to the documentation of this file.
00001 
00018 #ifdef _MGNCSCTRL_SPINNER
00019 
00020 #ifndef _MGUI_NCSCTRL_SPINNER_H
00021 #define _MGUI_NCSCTRL_SPINNER_H
00022 
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif  /* __cplusplus */
00026 
00032 /*
00033  * \def NCSCTRL_SPINNER
00034  * \brief the name of spinner control
00035 */
00036 #define NCSCTRL_SPINNER   NCSCLASSNAME("spinner")
00037 
00038 typedef struct _mSpinner            mSpinner;
00039 typedef struct _mSpinnerClass       mSpinnerClass;
00040 typedef struct _mSpinnerRenderer    mSpinnerRenderer;
00041 
00042 #define mSpinnerHeader(clsName) \
00043     mWidgetHeader(clsName)      \
00044     HWND h_target;
00045 
00046 
00055 struct _mSpinner
00056 {
00057         mSpinnerHeader(mSpinner)
00058 };
00059 
00060 #define mSpinnerClassHeader(clsName, parentClass) \
00061         mWidgetClassHeader(clsName, parentClass)
00062 
00069 struct _mSpinnerClass
00070 {
00071         mSpinnerClassHeader(mSpinner, mWidget)
00072 };
00073 
00074 MGNCS_EXPORT extern mSpinnerClass g_stmSpinnerCls;
00075 
00076 #define mHSpinner mSpinner
00077 #define mHSpinnerClass mSpinnerClass
00078 #define g_stmHSpinnerCls  g_stmSpinnerCls
00079 #define mVSpinner mSpinner
00080 #define mVSpinnerClass mSpinnerClass
00081 #define g_stmVSpinnerCls  g_stmSpinnerCls
00082 
00083 
00084 
00085 #define mSpinnerRendererHeader(clsName, parentClass)    \
00086         mWidgetRendererHeader(clsName, parentClass)
00087 
00094 struct _mSpinnerRenderer
00095 {
00096         mSpinnerRendererHeader(mSpinner, mWidget)
00097 };
00098 
00100 enum mSpinnerProp {
00101     NCSP_SPNR_MAXPOS = NCSP_WIDGET_MAX + 1, 
00102     NCSP_SPNR_MINPOS,    
00103     NCSP_SPNR_CURPOS,    
00104     NCSP_SPNR_LINESTEP,  
00105     NCSP_SPNR_TARGET,    
00106     NCSP_SPNR_MAX
00107 };
00108 
00109 #define KS_SPINPOST             0x00010000
00110 
00111 
00116 #define NCSS_SPNR_VERTICAL       0x0000L
00117 
00122 #define NCSS_SPNR_HORIZONTAL     ((0x0001L)<<(NCSS_WIDGET_SHIFT))
00123 
00128 #define NCSS_SPNR_AUTOLOOP       ((0x0002L)<<(NCSS_WIDGET_SHIFT))
00129 
00130 #define NCSS_SPNR_SHIFT (NCSS_WIDGET_SHIFT + 2)
00131 
00132 
00134 enum mSpinnerNotify {
00135         NCSN_SPNR_CHANGED = NCSN_WIDGET_MAX + 1, 
00136         NCSN_SPNR_REACHMAX,      
00137         NCSN_SPNR_REACHMIN,      
00138         NCSN_SPNR_MAX
00139 };
00140 
00144 
00145 #define NCSST_SPNR_NORMAL        0x0000
00146 #define NCSST_SPNR_DISABLE       0x0001
00147 #define NCSST_SPNR_HILIGHT       0x0002
00148 #define NCSST_SPNR_PUSHED        0x0004
00149 
00152 #ifdef __cplusplus
00153 }
00154 #endif  /* __cplusplus */
00155 
00156 #endif /* _MGUI_NCSCTRL_SPINNER_H */
00157 #endif //_MGNCSCTRL_SPINNER
Generated on Fri Jun 10 11:18:06 2011 for New Control Set V1.0.0 API Reference by  doxygen 1.6.3