CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2002
    Posts
    64

    How to make OS update it's Display Properties->Settings Page

    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

  2. #2
    Join Date
    Jul 2002
    Location
    Don't Know, Don't Care
    Posts
    346
    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.

    C G C F A D--Feel the Noise

    "When your life goes nowhere and leads back to me, doesn't that tell you something?"
    ~Gray Area Fury

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured