Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unpacking lParam of Windows WM_LBUTTONDOWN notification
Message
From
29/12/2005 15:04:38
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01081770
Message ID:
01081797
Views:
7
>Can anyone tell me how to unpack the lParam parameter value returned from the Windows WM_LBUTTONDOWN notification? I have an event handler bound to that event but cannot unpack the lParam to get the x,y cords of the mouse. Thanks in advance.
MOUSEDOWN_XCOORD = BITAND(m.lParam,0xFFFF)
MOUSEDOWN_YCOORD = BITAND(BITRSHIFT(m.lParam,16),0xFFFF)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform