C#操作窗口类C#操作窗口类.pdfVIP

  • 7
  • 0
  • 约2.76万字
  • 约 28页
  • 2021-11-22 发布于江苏
  • 举报
C# 实现过程: 过程一:找到当前鼠标位置的句柄 您的使用 2 个 WinAPI (俺喜欢自己封装下来用): View Code [DllImport( user32.dll , EntryPoint = GetCursorPos )] public static extern bool GetCursorPos( out Point pt); [DllImport( user32.dll , EntryPoint = WindowFromPoint )] public static extern IntPtr WindowFromPoint(Point pt); // 鼠标位置的坐标 public static Point GetCursorPos

文档评论(0)

1亿VIP精品文档

相关文档