`
Windows API: Extracting hight and low order values 2002-03-06 -- Larry Sand Newsgroups: comp.lang.clarion,softvelocity.products.c55ee Robert, If you have this prototype: ScWndProc PROCEDURE(UNSIGNED hWnd, | UNSIGNED uMsg, | UNSIGNED wParam, | LONG lParam)!,LONG,PASCAL As Edward notes, the word order of an Intel 32 bit integer is reversed, so define this structure over the wParam to get the low order word containing the scroll bar value. wP GROUP,OVER(wParam) low USHORT high USHORT END Then you can do some thing like: CASE wP.low OF SB_LEFT !handle the upper left scroll .... END Cheers, Larry Sand "Robert Rodgers" Printed November 23, 2024, 2:19 am This article has been viewed/printed 35205 times. Google search has resulted in 35 hits on this article since January 25, 2004. |