PDA

View Full Version : Set System Display Resolution


Roboblue
02-04-2006, 09:02 PM
Is there a way to set the user's system display resolution and refresh rate?
My project will not display correctly if the resolution is less than 800X600. I MAY have a target that is running 640X480. It would be a rare occurance, but if they have this app, they NEED to run it. I am detecting the system resolution at startup and if it's less than 800X600, I am giving a dialog message to that effect.
I would like to offer a resolution change in the same message so the user doesn't have to exit the app to change the resolution, or not be able to use the app if they don't know how to change the resolution (yep, I still have users who don't know how!).
Or, like my 78 year old neighbor, uses a 15" screen at 640, normally.
I know there are cons to this, but in the rare occurance, it may be better to be prepared. I could even change it back when the app is exited in case the monitor is a wide screen or the user wants to go back to the lower resolution.
I did do a search on this. There are a lot of threads on fitting the app to the display, but nothing I can find on fitting the display to the app.

Intrigued
02-04-2006, 11:41 PM
http://www.icynorth.com/development/ResMaster_dll.html

That's for the resolution resizing.

Refresh Rate? I'll let someone kick in that one.

I know you know, but, "Warning! Such actions may be closer to problems than they appear!"

;)

Roboblue
02-05-2006, 12:06 AM
Thanx Intriqued
Yeah, I do know it's risky. But at 640X, the main thing to worry about is the refresh rate at the 800 (which is as high as I would go) IF the vidcard keeps the same res as 640. Especially on older hardware.
I may not do this after all (second thoughts), but it would save a support call or 2. The app is for a target group that doesn't upgrade hardware often.
If I could find a way to set resolution, I would probably try it on a few legacy systems.