MiniGUI API Reference (MiniGUI-Processes)  v3.2.0
A mature and proven cross-platform GUI system for embedded and smart IoT devices
Macros
Messages of spinbox control

Macros

#define KS_SPINPOST   0x00010000
 The flag of the spinbox control message. More...
 
#define SPM_SETTARGET   0xF300
 Sets the target window of the spinbox. More...
 
#define SPM_GETTARGET   0xF301
 Gets the target window of the spinbox. More...
 
#define SPM_SETINFO   0xF302
 Sets the parameter information of the spinbox. More...
 
#define SPM_GETINFO   0xF303
 Gets the parameter infos of the spinbox. More...
 
#define SPM_DISABLEUP   0xF304
 Disable the ability to scroll up. More...
 
#define SPM_DISABLEDOWN   0xF305
 Disable the ability to scroll down. More...
 
#define SPM_ENABLEUP   0xF306
 Enable the ability to scroll up. More...
 
#define SPM_ENABLEDOWN   0xF307
 Enable the ability to scroll down. More...
 
#define SPM_SETCUR   0xF308
 Sets the current position in the range of the spinbox. More...
 
#define SPM_GETCUR   0xF309
 Gets the current position in the range of the spinbox. More...
 

Detailed Description

Macro Definition Documentation

#define KS_SPINPOST   0x00010000

The flag of the spinbox control message.

Definition at line 154 of file spinbox.h.

#define SPM_DISABLEDOWN   0xF305

Disable the ability to scroll down.

1 SPM_DISABLEDOWN
2 
3 wParam = 0;
4 lParam = 0;
Returns
Always be zero.

Definition at line 262 of file spinbox.h.

#define SPM_DISABLEUP   0xF304

Disable the ability to scroll up.

1 SPM_DISABLEUP
2 
3 wParam = 0;
4 lParam = 0;
Returns
Always be zero.

Definition at line 247 of file spinbox.h.

#define SPM_ENABLEDOWN   0xF307

Enable the ability to scroll down.

1 SPM_ENABLEDOWN
2 
3 wParam = 0;
4 lParam = 0;
Returns
Always be zero.

Definition at line 292 of file spinbox.h.

#define SPM_ENABLEUP   0xF306

Enable the ability to scroll up.

1 SPM_ENABLEUP
2 
3 wParam = 0;
4 lParam = 0;
Returns
Always be zero.

Definition at line 277 of file spinbox.h.

#define SPM_GETCUR   0xF309

Gets the current position in the range of the spinbox.

1 SPM_GETCUR
2 
3 wParam = 0;
4 lParam = 0;
Returns
The current position in the range of the spinbox.

Definition at line 325 of file spinbox.h.

#define SPM_GETINFO   0xF303

Gets the parameter infos of the spinbox.

1 SPM_GETINFO
2 PSPININFO info;
3 
4 wParam = 0;
5 lParam = (LPARAM)info;
Parameters
infoPointer to the SPININFO structure retreiving the spinbox info.
Returns
Zero on success, -1 to indicate invalid parameter.
See also
SPININFO

Definition at line 232 of file spinbox.h.

#define SPM_GETTARGET   0xF301

Gets the target window of the spinbox.

1 SPM_GETTARGET
2 
3 wParam = 0;
4 lParam = 0;
Returns
The handle to the target window.

Definition at line 192 of file spinbox.h.

#define SPM_SETCUR   0xF308

Sets the current position in the range of the spinbox.

1 SPM_SETCUR
2 int pos;
3 
4 wParam = (WPARAM)pos;
5 lParam = 0;
Parameters
posThe current position to set.
Returns
Zero on success, -1 to indicate invalid parameter.

Definition at line 310 of file spinbox.h.

#define SPM_SETINFO   0xF302

Sets the parameter information of the spinbox.

1 SPM_SETINFO
2 PSPININFO newinfo;
3 
4 wParam = 0;
5 lParam = (LPARAM)newinfo;
Parameters
newinfoPointer to the SPININFO structure storing the new spinbox info.
Returns
Zero on success, -1 to indicate invalid parameter.
See also
SPININFO

Definition at line 212 of file spinbox.h.

#define SPM_SETTARGET   0xF300

Sets the target window of the spinbox.

When the user click the up/left or down/right arrow of the spin box, it will emulate the down and up of the key SCANCODE_CURSORBLOCKUP or SCANCODE_CURSORBLOCKDOWN, and post MSG_KEYDOWN and MSG_KEYUP message to the target window. Note that the shifit key status of the message will have the flag KS_SPINPOST set.

1 SPM_SETTARGET
2 HWND hTarget;
3 
4 wParam = 0;
5 lParam = (LPARAM)hTarget;
Parameters
hTargetHandle of the target window.
Returns
Always be zero.

Definition at line 177 of file spinbox.h.