Date: 07-23-2010
Return to Index
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
created by gbSnippets: http://www.garybeene.com