Date: 02-16-2022
Return to Index
created by gbSnippets
SendMessage (hWnd, Msg, wParam, lParam)
'Upper/Lower Values
'The wParam/lParam message parameters are often used to pass two numeric (Integer)
'values - one in the lower 2 bytes and another in the upper 2 bytes of either wParam
'or lParam, both of which are 4 bytes.
'The PowerBASIC Lo and Hi functions are used to extract the lower/upper integer values
'The PowerBASIC MAK function is used to combine two integer values into a Long, suitable
'for assignment to wParam/lParam message arguments.
LoWord% = Lo(WORD, wParam) 'extract value from lower bytes
HiWord% = Hi(WORD, wParam) 'extract value from upper bytes
iResult& = Mak(Dword, LoWord&, HiWord&) 'combine two values
'gbs_00010
'Date: 03-10-2012
http://www.garybeene.com/sw/gbsnippets.htm