Jump to content

SpMPFROM2SHORT: Difference between revisions

From EDM2
Ak120 (talk | contribs)
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
  [...]
  [...]


[[Category:The OS/2 API Project]]
[[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)
[...]