WM_LBUTTONDOWN and the lParam parameter

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

Hi there,

I'm trying to emulate mouse clicks using WM_LBUTTONDOWN, and
WM_LBUTTONUP respectively. I can't quite remember how I am to create the
lParam from the x and y coordinates, any imput on this would be greatly
appreciated...
 
Dim lParam as Long = MAKELONG(x, y)

Public Shared Function MAKELONG(ByVal low As Integer, ByVal high As Integer)
As Long
Return (low And &HFFFF) Or ((high And &HFFFF) << 16)
End Function
 
Cheers Colin, just what I was after... :-)

Nick.

Colin Neller said:
Dim lParam as Long = MAKELONG(x, y)

Public Shared Function MAKELONG(ByVal low As Integer, ByVal high As
Integer) As Long
Return (low And &HFFFF) Or ((high And &HFFFF) << 16)
End Function
 
Back
Top