?
Solved

EnumDisplaySettings() and display frequencies

Posted on 1997-06-28
2
Medium Priority
?
347 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 200 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

752 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