A
Ares
Unregistered / Unconfirmed
GUEST, unregistred user!
我在win2k中改变了屏幕的分辨率后,发现刷新频率却变成了默认值(60Hz)。<br>请问如何保存当前的刷新频率呢?<br>我的代码如下:<br><br>procedure ResizeScreen; //更改<br>var<br> CurrentScreenMode: TDeviceMode;<br>begin<br> //保存当前屏幕分辨率<br> OldScreenMode.dmPelsWidth:=Screen.Width;<br> OldScreenMode.dmPelsHeight:=Screen.Height;<br><br> //修改当前屏幕分辨率为800*600<br> CurrentScreenMode.dmFields:=DM_PELSWIDTH or DM_PELSHEIGHT;<br> CurrentScreenMode.dmPelsWidth:=800;<br> CurrentScreenMode.dmPelsHeight:=600;<br> ChangeDisplaySettings(CurrentScreenMode,0);<br>end;<br><br>procedure RestoreScreen; //恢复<br>var<br> CurrentScreenMode: TDeviceMode;<br>begin<br> CurrentScreenMode.dmFields:=DM_PELSWIDTH or DM_PELSHEIGHT;<br> CurrentScreenMode.dmPelsWidth:=OldScreenMode.dmPelsWidth;<br> CurrentScreenMode.dmPelsHeight:=OldScreenMode.dmPelsHeight;<br> ChangeDisplaySettings(CurrentScreenMode,0);<br>end;<br><br>附:有时无法改变分辨率,不知何故?请各位大侠指教!