MiniGUI API Reference (MiniGUI-Standalone)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
spinbox.h
Go to the documentation of this file.
1 
43 /*
44  * $Id: spinbox.h 10690 2008-08-18 09:32:47Z weiym $
45  *
46  * MiniGUI for Linux/uClinux, eCos, uC/OS-II, VxWorks,
47  * pSOS, ThreadX, NuCleus, OSE, and Win32.
48  */
49 
50 #ifndef EXT_SPINBOX_H
51 #define EXT_SPINBOX_H
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
71 #define CTRL_SPINBOX ("SpinBox")
72 
74 typedef struct _SPININFO
75 {
77  int max;
79  int min;
81  int cur;
82 } SPININFO;
88 
100 void GetSpinBoxSize (DWORD dwStyle, int* w, int* h);
101 
112 #define SPS_AUTOSCROLL 0x00000001L
113 
118 #define SPS_HORIZONTAL 0x00000010L
119 
124 #define SPS_TYPE_NORMAL 0x00000000L
125 
130 #define SPS_TYPE_UPARROW 0x00000100L
131 
136 #define SPS_TYPE_DOWNARROW 0x00000200L
137 
142 #define SPS_TYPE_MASK 0x00000F00L
143 
154 #define KS_SPINPOST 0x00010000
155 
177 #define SPM_SETTARGET 0xF300
178 
192 #define SPM_GETTARGET 0xF301
193 
212 #define SPM_SETINFO 0xF302
213 
232 #define SPM_GETINFO 0xF303
233 
247 #define SPM_DISABLEUP 0xF304
248 
262 #define SPM_DISABLEDOWN 0xF305
263 
277 #define SPM_ENABLEUP 0xF306
278 
292 #define SPM_ENABLEDOWN 0xF307
293 
310 #define SPM_SETCUR 0xF308
311 
325 #define SPM_GETCUR 0xF309
326 
338 #define SPN_REACHMIN 1
339 
344 #define SPN_REACHMAX 2
345 
352 #ifdef __cplusplus
353 }
354 #endif
355 
356 #endif /* EXT_SPINBOX_H */
357 
int cur
Definition: spinbox.h:81
struct _SPININFO SPININFO
SPININFO * PSPININFO
Data type of the pointer to a SPININFO.
Definition: spinbox.h:87
DWORD_PTR DWORD
A unsigned long type definition for pointer precision.
Definition: common.h:555
void GetSpinBoxSize(DWORD dwStyle, int *w, int *h)
Gets size of a vertical spin box control.
int min
Definition: spinbox.h:79
int max
Definition: spinbox.h:77