Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vb.net 从WM_LBUTTONDOWN SendMessage获取位置_Vb.net_Sendmessage_Wndproc - Fatal编程技术网

Vb.net 从WM_LBUTTONDOWN SendMessage获取位置

Vb.net 从WM_LBUTTONDOWN SendMessage获取位置,vb.net,sendmessage,wndproc,Vb.net,Sendmessage,Wndproc,我想在vb.net中发送WM_LBUTTONDOWN时从参数中获取x,y位置 我得到这个来做参数,但我如何从中得到位置 IntPtr lParam = (IntPtr)((y << 16) | x); 更新:我刚试过这个,效果非常好 Dim pos As New System.Drawing.Point(CInt(m.LParam)) Dim pos As New System.Drawing.Point(CInt(m.LParam)) 当接收到WM_LBUTTONDOWN消息

我想在vb.net中发送WM_LBUTTONDOWN时从参数中获取x,y位置

我得到这个来做参数,但我如何从中得到位置

IntPtr lParam = (IntPtr)((y << 16) | x);
更新:我刚试过这个,效果非常好

Dim pos As New System.Drawing.Point(CInt(m.LParam))
Dim pos As New System.Drawing.Point(CInt(m.LParam))

当接收到WM_LBUTTONDOWN消息时,xpos=LOWORD(lParam)和yPos=HIWORD(lParam)


当收到WM_LBUTTONDOWN消息时,xpos=LOWORD(lParam)和yPos=HIWORD(lParam)


我刚刚试过这个,效果非常好

Dim pos As New System.Drawing.Point(CInt(m.LParam))
Dim pos As New System.Drawing.Point(CInt(m.LParam))

我刚试过这个,效果很好

Dim pos As New System.Drawing.Point(CInt(m.LParam))
Dim pos As New System.Drawing.Point(CInt(m.LParam))

所以你也可以用VB!现在只剩下870英镑了+1所以你也可以用VB!现在只剩下870英镑了+1非常感谢.net人员为
提供了有用的Int32构造函数。你应该把它写成一个答案,而不是编辑问题。非常感谢.net人员为
提供了有用的Int32构造函数。你应该把它写下来作为答案,而不是编辑问题。