我目前有一个应用程序,在多监视器配置下运行时需要知道光标所在的监视器。
GetCursorPos和MonitorFromPoint。
不要忘记 Screen.MonitorFromPoint 和 Mouse.CursorPos - 这些 WinAPI 函数被封装在 VCL 中。