00001
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef EXT_SPINBOX_H
00030 #define EXT_SPINBOX_H
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00055 #define CTRL_SPINBOX ("SpinBox")
00056
00058 typedef struct _SPININFO
00059 {
00061 int max;
00063 int min;
00065 int cur;
00066 } SPININFO;
00071 typedef SPININFO *PSPININFO;
00072
00084 void GetSpinBoxSize (DWORD dwStyle, int* w, int* h);
00085
00096 #define SPS_AUTOSCROLL 0x00000001L
00097
00102 #define SPS_HORIZONTAL 0x00000010L
00103
00108 #define SPS_TYPE_NORMAL 0x00000000L
00109
00114 #define SPS_TYPE_UPARROW 0x00000100L
00115
00120 #define SPS_TYPE_DOWNARROW 0x00000200L
00121
00126 #define SPS_TYPE_MASK 0x00000F00L
00127
00138 #define KS_SPINPOST 0x00010000
00139
00161 #define SPM_SETTARGET 0xF300
00162
00176 #define SPM_GETTARGET 0xF301
00177
00196 #define SPM_SETINFO 0xF302
00197
00216 #define SPM_GETINFO 0xF303
00217
00231 #define SPM_DISABLEUP 0xF304
00232
00246 #define SPM_DISABLEDOWN 0xF305
00247
00261 #define SPM_ENABLEUP 0xF306
00262
00276 #define SPM_ENABLEDOWN 0xF307
00277
00294 #define SPM_SETCUR 0xF308
00295
00309 #define SPM_GETCUR 0xF309
00310
00322 #define SPN_REACHMIN 1
00323
00328 #define SPN_REACHMAX 2
00329
00338 #ifdef __cplusplus
00339 }
00340 #endif
00341
00342 #endif
00343