Antwort schreiben

Foren -> Multiple monitors -> disabling the seconed monitor from c++ code
yakov voloh   2000-02-26 21:15
dose someone know how can i disable the secondery monitor from the system from c++ code.
thenk you vary much
yakov
Christian Studer   2000-02-28 09:16
On Win2000, use the ChangeDisplaySettingsEx function to set the height, width and position to 0.
Win98 is a bit more involved: HKEY_CURRENT_CONFIG\Display\Settings has the settings for the primary monitor. Subkeys of this key store settings for secondary monitors. To disable a monitor, set the AttachToDesktop value to "0", then call ChangeDisplaySettingsEx with the name of the monitor and all other parameters set to 0.

See the Programming section for more info on multimon programming.
To see this stuff in action, download the Realtime Soft Multimon beta.

Christian Studer
http://www.realtimesoft.com
Foren -> Multiple monitors -> disabling the seconed monitor from c++ code

Antwort schreiben