Solved

EnumDisplaySettings() and display frequencies

Posted on 1997-06-28
2
317 Views
Last Modified: 2013-12-03
I have an app which allows the user to switch display resolution. On NT I get the display frequencies available for a particular resolution and allow the user to pick which one to use. On one particular machine (DELL 486 with Cyrix video card running NT 4) one of the avilable frequencies returned by EnumDisplaySettings() is a frequency of 1 Hz! Is this the default hardware setting? Should I treat settings below, say 20 as default frequencies?
0
Comment
Question by:dhardiman
2 Comments
 
LVL 3

Expert Comment

by:byang
ID: 1399521
Yes, obviously the video driver is not returning the correct frequency value. Treat anything below 30 as default. The lowest I've seen is 40 or 45.
0
 
LVL 4

Accepted Solution

by:
md041797 earned 50 total points
ID: 1399522
From the DDK:
When you call the EnumDisplaySettings function, the dmDisplayFrequency member may return with the value 0 or 1. These values represent the display hardware's default refresh rate. This default rate is typically set by switches on a display card or computer motherboard, or by a configuration program that does not use Win32 display functions such as ChangeDisplaySettings.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now