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
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...
Let me congratulate you for your brilliance.
Colin
Cheers Sapero. Your genius, as always, is most appreciated.