摘要: .Net封装好的方法int x = Control.MousePosition.X;int y = Control.MousePosition.Y;用API方法using System.Runtime.InteropServices;Point p;[DllImport("user32.dll")]public static extern bool GetCursorPos(out Point pt);private void timer1_Tick(object sender, EventArgs e){ GetCursorPos(out p); label1.Text 阅读全文
posted @ 2011-05-03 08:41 晴天娃娃、 阅读(5223) 评论(0) 推荐(0) 编辑