S
starblink
Unregistered / Unconfirmed
GUEST, unregistred user!
begin<br>EnumDisplaySettings(<br> LPCTSTR lpszDeviceName, // specifies the display device<br> DWORD iModeNum, // specifies the graphics mode<br> LPDEVMODE lpDevMode // points to structure to receive settings<br> <br>lpdevmode:=dmPelsWidth or dmPelsHeight or dmDisplayFrequency;<br>...<br>end;<br>以上代码在windows2000下非常正常,但在win98下,得到的屏幕刷新率只有零。<br>MSDN中解释如下:<br>When you call the EnumDisplaySettings function, the dmDisplayFrequency<br> member may return with the value 0 or 1. These values represent the <br>display hardware's default refresh rate. This default rate is typically<br> set by switches on a display card or computer motherboard, or by a<br> configuration program that does not use Win32 display functions such <br>as ChangeDisplaySettings...<br>我想问一下这个问题在98下的完美解决方法,请大虾指教,谢谢。<br>