Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前有一个应用程序需要知道在多监视器配置中运行时光标所在的监视器。
GetCursorPos和MonitorFromPoint。
不要忘记 Screen.MonitorFromPoint 和 Mouse.CursorPos - 这些 WinAPI 函数封装在 VCL 中。