Jump to content

SpMPFROM2SHORT

From EDM2
Revision as of 23:34, 26 February 2017 by Ak120 (talk | contribs) (Ak120 moved page OS2 API:SPUTILS:spMPFROM2SHORT to SpMPFROM2SHORT)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns a message parameter (used by spPostMsg) value which is build from 2 short (integer) values.

Syntax: mparam = spMPFROM2SHORT ( short1 , short2 )

Parameters: short1 - Numeric value of type SHORT (-32768<=short1<=32767) or USHORT (0<=short1<=65535) short2 - Numeric value of type SHORT (-32768<=short1<=32767) or USHORT (0<=short1<=65535)

Returns: Message parameter value. Example Code: (part of example code of spFindWindowHandles)

/* scclock.cmd (spUtils Example Code) */
[...]
CALL spPostMsg hwnd,'WM_BUTTON1DOWN',spMPFROM2SHORT(xpos,ypos)
CALL spPostMsg hwnd,'WM_BUTTON1UP',spMPFROM2SHORT(xpos,ypos)
CALL spPostMsg focus,'WM_BUTTON1DOWN',spMPFROM2SHORT(0,0)
CALL spPostMsg focus,'WM_BUTTON1UP',spMPFROM2SHORT(0,0)
[...]