Cuchulan
asked on
Access the Display Properties Panel in Windows
Hey Experts,
Any way to access the Display Properties panel in Windows and change settings.
Maybe I need a do this in C++/MFC's and write a JNIWrapper for this allowing me to access using Java?
I can make the Panel appear using the following command in a .bat file and forcing that to run:
Rundll32.exe shell32.dll,Control_RunDLL Desk.cpl,@0, 3
Any ideas??
Cuchulan
Any way to access the Display Properties panel in Windows and change settings.
Maybe I need a do this in C++/MFC's and write a JNIWrapper for this allowing me to access using Java?
I can make the Panel appear using the following command in a .bat file and forcing that to run:
Rundll32.exe shell32.dll,Control_RunDLL
Any ideas??
Cuchulan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I found some API documentation (http://msdn2.microsoft.com/en-gb/library/ms533235.aspx) that allows you to change the primary monitor. I can't figure out how you would change the "extend my windows Desktop". I think the primary monitor part could probably be handled by making a quick C application to use the API functions, then calling it with Runtime.exec, since no parameters need be passed and a JNI isn't really more elegant.
ASKER
Will try that out.
Thanks for all your help superm401!
Cheers!
Thanks for all your help superm401!
Cheers!
You're welcome. Best of luck.
ASKER
Cheers that worked for me.
The settings I need to change are to set "Use this device as the primary monitor" and "Extend my Windows Desktop onto this monitor"
If its possible for these to be changes that would be brillant.
Cheers!