Click to See Complete Forum and Search --> : How to make OS update it's Display Properties->Settings Page


indranil_m
February 1st, 2004, 11:06 PM
Hi,

I developed a small app that changes the Resolution of my desktop, say from 800x600 to 1024x768.
I am in 800x600 mode. I opened OS Display Properties->Settings page which shows under Screen Resolution 8x6. I chage the screen resolution to 10x7 using my app. But I still see in OS Settings page the Screen Resolution shows 8x6. How to make OS update this settings page?
Note: If I close the Display Properties-> Settings page, and re-open it, I can see that Screen Resolution is now 10x7.
But the resolution is not changing dynamically -- which I want to OS to do.

regards,
Indranil

Waldo2k2
February 12th, 2004, 02:44 PM
tell your program to restart explorer.exe, that might do the trick...basically you have to force the computer to register current settings again, by just forcing a screen resolution change without consulting the OS, it doesn't know the resolution has been changed. Games do the same thing.