ChangeDisplaySettings - Maintaining Refresh Rate
From: Andrew Jameson (contact_at_softspotsoftware.com)
Date: 10/28/03
- Next message: djc: "Re: How to set a global variable in a DLL"
- Previous message: Brian Cook: "Re: How to set a global variable in a DLL"
- Next in thread: Mathias Rauen: "Re: ChangeDisplaySettings - Maintaining Refresh Rate"
- Reply: Mathias Rauen: "Re: ChangeDisplaySettings - Maintaining Refresh Rate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Oct 2003 09:01:39 -0000
Hi,
I'm using ChangeDisplaySettings ... altering only the Width/Height/Color but
not the DisplayFrequency. On some systems, when restoring the original
settings by calling ChangeDisplaySettings(DEVMODE(nil^), 0), results in a
change of DisplayFrequency to 60Hz. If I actually query the
DisplayFrequency I get only the default values of either 0 or 1.
The result is that after running my program, the user is left with a
flickery display ... I'm reluctant to introduce the complexity of getting
the user to specify a rate but I've no idea why this is happening ... it
seems to be unique to XP but that's not proven.
Thanks
Andrew
- Next message: djc: "Re: How to set a global variable in a DLL"
- Previous message: Brian Cook: "Re: How to set a global variable in a DLL"
- Next in thread: Mathias Rauen: "Re: ChangeDisplaySettings - Maintaining Refresh Rate"
- Reply: Mathias Rauen: "Re: ChangeDisplaySettings - Maintaining Refresh Rate"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]