MiniGUI API Reference (MiniGUI-Standalone)  v4.0.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

◆ KS_SPINPOST

#define KS_SPINPOST   0x00010000

The flag of the spinbox control message.

Definition at line 166 of file spinbox.h.

◆ SPM_DISABLEDOWN

#define SPM_DISABLEDOWN   0xF305

Disable the ability to scroll down.

wParam = 0;
lParam = 0;
Returns
Always be zero.

Definition at line 274 of file spinbox.h.

◆ SPM_DISABLEUP

#define SPM_DISABLEUP   0xF304

Disable the ability to scroll up.

wParam = 0;
lParam = 0;
Returns
Always be zero.

Definition at line 259 of file spinbox.h.

◆ SPM_ENABLEDOWN

#define SPM_ENABLEDOWN   0xF307

Enable the ability to scroll down.

wParam = 0;
lParam = 0;
Returns
Always be zero.

Definition at line 304 of file spinbox.h.

◆ SPM_ENABLEUP

#define SPM_ENABLEUP   0xF306

Enable the ability to scroll up.

wParam = 0;
lParam = 0;
Returns
Always be zero.

Definition at line 289 of file spinbox.h.

◆ SPM_GETCUR

#define SPM_GETCUR   0xF309

Gets the current position in the range of the spinbox.

wParam = 0;
lParam = 0;
Returns
The current position in the range of the spinbox.

Definition at line 337 of file spinbox.h.

◆ SPM_GETINFO

#define SPM_GETINFO   0xF303

Gets the parameter infos of the spinbox.

PSPININFO info;
wParam = 0;
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 244 of file spinbox.h.

◆ SPM_GETTARGET

#define SPM_GETTARGET   0xF301

Gets the target window of the spinbox.

wParam = 0;
lParam = 0;
Returns
The handle to the target window.

Definition at line 204 of file spinbox.h.

◆ SPM_SETCUR

#define SPM_SETCUR   0xF308

Sets the current position in the range of the spinbox.

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

Definition at line 322 of file spinbox.h.

◆ SPM_SETINFO

#define SPM_SETINFO   0xF302

Sets the parameter information of the spinbox.

PSPININFO newinfo;
wParam = 0;
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 224 of file spinbox.h.

◆ SPM_SETTARGET

#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.

HWND hTarget;
wParam = 0;
lParam = (LPARAM)hTarget;
Parameters
hTargetHandle of the target window.
Returns
Always be zero.

Definition at line 189 of file spinbox.h.