42 #ifdef _MGNCSCTRL_TRACKBAR 44 #ifndef _MGUI_NCSCTRL_TRACKBAR_H 45 #define _MGUI_NCSCTRL_TRACKBAR_H 60 #define NCSCTRL_TRACKBAR NCSCLASSNAME("trackbar") 62 typedef struct _mTrackBar mTrackBar;
63 typedef struct _mTrackBarClass mTrackBarClass;
64 typedef struct _mTrackBarRenderer mTrackBarRenderer;
66 #define mTrackBarHeader(Class) \ 77 mTrackBarHeader(mTrackBar)
80 #define mTrackBarClassHeader(clsName, parentClass) \ 81 mSliderClassHeader(clsName, parentClass) 89 struct _mTrackBarClass
91 mTrackBarClassHeader(mTrackBar, mSlider)
100 MGNCS_EXPORT
extern mTrackBarClass g_stmTrackBarCls;
102 #define mHTrackBar mTrackBar 103 #define mHTrackBarClass mTrackBarClass 104 #define g_stmHTrackBarCls g_stmTrackBarCls 105 #define mVTrackBar mTrackBar 106 #define mVTrackBarClass mTrackBarClass 107 #define g_stmVTrackBarCls g_stmTrackBarCls 110 #define mTrackBarRendererHeader(clsName, parentClass) \ 111 mSliderRendererHeader(clsName, parentClass) 119 struct _mTrackBarRenderer
121 mTrackBarRendererHeader(mTrackBar, mSlider)
124 enum mTrackBarCalcArea {
125 NCSTRACKBAR_AREA_TRICK = 0x10
133 #define NCSP_TRKBAR_MAXPOS NCSP_SLIDER_MAXPOS 138 #define NCSP_TRKBAR_MINPOS NCSP_SLIDER_MINPOS 143 #define NCSP_TRKBAR_CURPOS NCSP_SLIDER_CURPOS 148 #define NCSP_TRKBAR_LINESTEP NCSP_SLIDER_LINESTEP 153 #define NCSP_TRKBAR_PAGESTEP NCSP_SLIDER_PAGESTEP 161 NCSP_TRKBAR_THUMB_WIDTH = NCSP_SLIDER_MAX + 1,
163 NCSP_TRKBAR_THUMB_HEIGHT,
185 #define NCSS_TRKBAR_HORIZONTAL NCSS_SLIDER_HORIZONTAL 191 #define NCSS_TRKBAR_VERTICAL NCSS_SLIDER_VERTICAL 197 #define NCSS_TRKBAR_NOTICK (0x0001L<<NCSS_SLIDER_SHIFT) 199 #define NCSS_TRKBAR_SHIFT NCSS_SLIDER_SHIFT + 1 205 #define NCSN_TRKBAR_CHANGED NCSN_SLIDER_CHANGED 211 #define NCSN_TRKBAR_REACHMAX NCSN_SLIDER_REACHMAX 217 #define NCSN_TRKBAR_REACHMIN NCSN_SLIDER_REACHMIN 231 #define NCSN_TRKBAR_MAX NCSN_SLIDER_MAX 234 #define HORZ_SLIDER_W 24 235 #define HORZ_SLIDER_H 12 237 #define VERT_SLIDER_W 12 238 #define VERT_SLIDER_H 24 240 #define VERT_TRACK_W 6 241 #define HORZ_TRACK_H 6 244 #define GAP_TICK_SLIDER 6 253 #endif //_MGNCSCTRL_TRACKBAR