I have a two monitor environment. My primary monitor is on my laptop, having a screen resolution of 1920 X 1080. My second monitor stands alone and has a resolution of 1440 X 900. These form a continuous virtual screen.
What's confusing is that, according to several Windows API functions such as GetSystemMetrics and GetMonitorInfo, the second monitor's left position is 2880 and its right position is 5040. Now, 1920 + 1440 = 3360, not 5040. 2880 is not 1921.
My guess is that the difference in pixel position has something to do with the different sizes of my two monitors. My Lenovo T470 laptop has a screen diagonal of 14 inches and my Lenovo ThinkVision stand-alone monitor has a screen diagonal of 19 inches.
Can someone please tell me what the formula is for calculating a left pixel position of 2880 and right pixel position of 5040 for my second monitor. I appreciate any help anyone can provide.