Detecting multiple monitors?

BlitzMax Forums/BlitzMax Programming/Detecting multiple monitors?

JoshK(Posted 2007) [#1]
I want to modify my WINDOW_CENTER MaxGUI module modification to handle multiple monitors. This would center the window in the middle of the first monitor, instead of spreading it across the two. How might I detect multiple monitors?


H&K(Posted 2007) [#2]
Ignore this, glib answer. Sorry


Popup a Diologue box, and ask.


d-bug(Posted 2007) [#3]
DesktopExtension can handle multiple monitors for Windows.
The code is open to use. Download it from my signature. The magic key is EnumDisplayMonitors.


~edit~

To get the position and size of each single monitor:

This will fill the TDisplay type with information about your monitors. Each monitor has it's own TDisplay type, stored in TDisplay.List

To get the full Desktop size (all monitors) do the following:



To get the amount of your systems monitors:


To make sure all monitors has the same depth:


I hope this would help you out...

cheers