Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3711
Number of posts: 9173

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
API for changing Secondary Monitor Position Posted by Malcolm2008 on 17 Aug 2009 at 4:49 AM
Just wondering if there is an API that would enable my program to change the position of a secondary monitor when my users are using a multi-monitor setup. For example, lets say I wanted to move a monitor positioned to the right of the primary monitor, to the top of the primary monitor.

I know there is ChangeDisplaySettingsEx, but that appears only to allow me to change the Resolution, and not the Position.

There is ChangeDisplaySettings, which allows me to change the primary monitor.

But after searching the net and playing around with different ideas all day, I have not come across anything.

Just to save people some time, I'm know how to obtain the relevant monitor coordinates so that I can load my forms on the right monitor. That can be easily done through VB.Net. An API to change monitor position of secondary monitors is the only thing thats going to serve the purpose.
Report
Re: API for changing Secondary Monitor Position Posted by venkeey on 6 Nov 2009 at 2:54 PM
Were you able to change the secondary monitor position through an API? I not only need to change the position but also enable the secondary monitor. Thanks for your help.
Report
Re: API for changing Secondary Monitor Position Posted by Malcolm2008 on 6 Nov 2009 at 3:11 PM
I never found an answer to that one. After researching the net thoroughly I eventually gave up. If you find an answer I would still like to know
Report
Re: API for changing Secondary Monitor Position Posted by mvermand on 17 Nov 2009 at 1:28 AM
Report
Re: API for changing Secondary Monitor Position Posted by Codessentials on 17 Nov 2009 at 1:44 AM
Report
Re: API for changing Secondary Monitor Position Posted by Malcolm2008 on 17 Nov 2009 at 3:07 PM
Thanks for that, it looks like it is what I am looking for.

Malcolm
Report
Re: Correction Posted by Malcolm2008 on 18 Nov 2009 at 3:16 AM
After playing around with those API's for a few hours, I finally figured out that it appears that all they do is change the display area of a monitor, the same as happens when you use the buttons on your monitor to change contrast and brightness etc along with where the picture is displayed on screen etc. I am more after an API to say for example to move the secondary monitor from the right side of the primary monitor to the top of the primary monitor in a multimonitor setup.

Thanks for your efforts though.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.