Solutionunvalidated
You can confine mouse cursor movement to a rectangular area using the `ClipCursor` function — using WinAPI functions. Tension: The area of a display can be obtained using the `GetMonitorInfo` function. Outcome: The `rcMonitor` member of this structure contains the bounding rectangle of the display, whereas the `rcWork` member contains the "work area" of the display.
40ac15ce-d8d0-4ed1-8753-80ded3efb1fb
You can confine mouse cursor movement to a rectangular area using the ClipCursor function — using WinAPI functions. Tension: The area of a display can be obtained using the GetMonitorInfo function. Outcome: The rcMonitor member of this structure contains the bounding rectangle of the display, whereas the rcWork member contains the "work area" of the display.