posted 20 years ago
If you know that they're going to be running in 1024 x 768 resolution then it's a simple matter of using a formula like this -
If their resolution can be variable as well as the number of monitors, you are basically going to have to guess. But you can make an educated guess - If you get a height of 480, the width is probably 640. If you get a height of 600, the width is probably 800. If you get a height of 768 the width is probably 1024, etc. You could also try to validate your guess a bit more by dividing the total screen width by the guessed width using modulus (%) and checking to make sure the result is 0.
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.