>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)