views:

531

answers:

2

I currently have an application which needs to have an awareness of which monitor the cursor is located when running in a multi-monitor configuration.

+6  A: 

GetCursorPos and MonitorFromPoint.

Roger Lipscombe
+2  A: 

Don't forget Screen.MonitorFromPoint and Mouse.CursorPos - these WinAPI functions are encapsulated in the VCL.

Barry Kelly
Als remember that Mouse.CursorPos throws exceptions if there is no mouse pos. For example when the user session is disconnected (XP fast user switching or terminal server).
Lars Truijens