#define KS_SPINPOST 0x00010000 |
#define SPM_DISABLEDOWN 0xF305 |
#define SPM_DISABLEUP 0xF304 |
#define SPM_ENABLEDOWN 0xF307 |
#define SPM_ENABLEUP 0xF306 |
#define SPM_GETCUR 0xF309 |
Gets the current position in the range of the spinbox.
SPM_GETCUR wParam = 0; lParam = 0;
#define SPM_GETINFO 0xF303 |
Gets the parameter infos of the spinbox.
SPM_GETINFO PSPININFO info; wParam = 0; lParam = (LPARAM)info;
info | Pointer to the SPININFO structure retreiving the spinbox info. |
#define SPM_GETTARGET 0xF301 |
Gets the target window of the spinbox.
SPM_GETTARGET wParam = 0; lParam = 0;
#define SPM_SETCUR 0xF308 |
Sets the current position in the range of the spinbox.
SPM_SETCUR int pos; wParam = (WPARAM)pos; lParam = 0;
pos | The current position to set. |
#define SPM_SETINFO 0xF302 |
Sets the parameter information of the spinbox.
SPM_SETINFO PSPININFO newinfo; wParam = 0; lParam = (LPARAM)newinfo;
newinfo | Pointer to the SPININFO structure storing the new spinbox info. |
#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.
SPM_SETTARGET HWND hTarget; wParam = 0; lParam = (LPARAM)hTarget;
hTarget | Handle of the target window. |