Replies: 1 comment
-
The Windows multi screen will be support when I have time. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On systems with multiple monitors, the leftmost monitor is not always the primary monitor. That gives positions on this monitor a negative X value.
The existing
GetScreenSize
function is fine for getting the overall resolution of the virtual screen, but not where its origin is. I'd like to know where the origin is, as well as the overall screen size.The Win32 API supports this via the
GetSystemMetrics
function when supplied with theSM_XVIRTUALSCREEN
andSM_YVIRTUALSCREEN
flags, which get the X location of the left side of the virtual screen and the Y location of the top of the virtual screen, respectively. From this, the offset of the coordinate origin is easily obtained.Beta Was this translation helpful? Give feedback.
All reactions