SpMPFROM2SHORT: Difference between revisions
Appearance
m Martini moved page OS2 API:spMPFROM2SHORT to OS2 API:SPUTILS:spMPFROM2SHORT |
m Ak120 moved page OS2 API:SPUTILS:spMPFROM2SHORT to SpMPFROM2SHORT |
||
(One intermediate revision by the same user not shown) | |||
Line 17: | Line 17: | ||
[...] | [...] | ||
[[Category: | [[Category:SpUtils]] |
Latest revision as of 23:34, 26 February 2017
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) [...]