October 29, 2025, 02:02:31 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


More than one screen/monitor

Started by TonyMUK, November 30, 2009, 02:46:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TonyMUK

I don't know if this is in the right place or not. I have searched the forum and couldn't find the info I needed.

I am writing something that needs the ability to span multiple monitors. I can do this to two monitors by doubling the width I get from enumdisplaysettingsa but I want the program to do this automatically if it detects more than one monitor. My question is how do I determine if there is more than one monitor? If possible I would like to determine whether they are side by side or one on top of the other but it is not essential. I can assume they are always side by side.

Any help would be greatly appreciated.

Thanks

TonyM
Check out www.arnoldchiari.co.uk. If you don't know what Arnold Chiari is you are very lucky.

sapero

http://msdn.microsoft.com/en-us/library/dd145136.aspx here is a topic about multiple monitors and the virtual screen.
GetSystemMetrics(SM_CMONITORS) returns the number of monitors attached to the desktop (Multiple Monitor System Metrics subtopic)
GetMonitorInfo - returns monitor position expressed in virtual-screen coordinates,
ChangeDisplaySettingsEx - changes monitor position, in virtual-screen coordinates...

celphick

Let me congratulate you for your brilliance.

Colin

TonyMUK

Cheers Sapero. Your genius, as always, is most appreciated.
Check out www.arnoldchiari.co.uk. If you don't know what Arnold Chiari is you are very lucky.