Post Reply

Forums -> Multiple monitors -> C++/w2k : How to programmatically attach a monitor to Desktop?
Cédric   2001-01-29 22:25
Hi guys, (sorry for language mistakes, but i'm french)
if someone knows how to programmatically attach (or detach) a monitor to desktop, i'm listening him.

Thanks in advance!

Cédric.
Christian Studer   2001-01-30 01:22
To detach the monitor, use ChangeDisplaySettingsEx and set dmPosition, dmPelsWidth and dmPelsHeight to zero.

To attach it again, simply set the previous values for dmPosition, dmPelsWidth and dmPelsHeight.

You can also do this with the new UltraMon Beta 3. If you are interested, I can send you the necessary header files.

Christian Studer
www.realtimesoft.com
Cédric   2001-01-30 03:25
YEAAAAAH it works!

I'm very grateful to you.
Be sure that if you need some programming tip (C++ and VB), i'll give it to you (if i can).

Thanks

Cédric.
Forums -> Multiple monitors -> C++/w2k : How to programmatically attach a monitor to Desktop?

Post Reply