Posted by member 99 on 2004-03-04 12:01:20 link
ElseIf! Don't do If ... If ... EndIf. And that's not enough, there could be 3 monitors, and you need to know how they are arranged if you're going to make any use of them anyway.
dev:
SM_CXSCREEN is primary monitor, SM_CXVIRTUALSCREEN is whole desktop. I do remember it being the total size, but if they're still that way it's only because that specific video driver is lying to Windows.
dev:
StringCchPrintf(szTemp, MAX_PATH, "%d", GetSystemMetrics(SM_CXSCREEN));
SetVariable("ResolutionX", szTemp);
SetVariable("ResolutionX", szTemp);
SM_CXSCREEN is primary monitor, SM_CXVIRTUALSCREEN is whole desktop. I do remember it being the total size, but if they're still that way it's only because that specific video driver is lying to Windows.