MiniGUI API Reference (MiniGUI-Processes)  v5.0.6
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
 Set the target window of the spinbox. More...
 
#define SPM_GETTARGET   0xF301
 Get the target window of the spinbox. More...
 
#define SPM_SETINFO   0xF302
 Set the parameter information of the spinbox. More...
 
#define SPM_GETINFO   0xF303
 Get 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
 Set the current position in the range of the spinbox. More...
 
#define SPM_GETCUR   0xF309
 Get 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

Get 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

Get 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

Get 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

Set 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

Set 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

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

SPM_GETCUR
#define SPM_GETCUR
Get the current position in the range of the spinbox.
Definition: spinbox.h:337
HWND
GHANDLE HWND
Handle to main window or control.
Definition: common.h:407
WPARAM
UINT_PTR WPARAM
A type definition for the first message paramter.
Definition: common.h:706
_SPININFO
Definition: spinbox.h:86
SPM_SETINFO
#define SPM_SETINFO
Set the parameter information of the spinbox.
Definition: spinbox.h:224
SPM_ENABLEUP
#define SPM_ENABLEUP
Enable the ability to scroll up.
Definition: spinbox.h:289
SPM_GETTARGET
#define SPM_GETTARGET
Get the target window of the spinbox.
Definition: spinbox.h:204
SPM_GETINFO
#define SPM_GETINFO
Get the parameter infos of the spinbox.
Definition: spinbox.h:244
SPM_DISABLEUP
#define SPM_DISABLEUP
Disable the ability to scroll up.
Definition: spinbox.h:259
SPM_DISABLEDOWN
#define SPM_DISABLEDOWN
Disable the ability to scroll down.
Definition: spinbox.h:274
SPM_SETCUR
#define SPM_SETCUR
Set the current position in the range of the spinbox.
Definition: spinbox.h:322
LPARAM
UINT_PTR LPARAM
A type definition for the second message paramter.
Definition: common.h:712
SPM_ENABLEDOWN
#define SPM_ENABLEDOWN
Enable the ability to scroll down.
Definition: spinbox.h:304
SPM_SETTARGET
#define SPM_SETTARGET
Set the target window of the spinbox.
Definition: spinbox.h:189