一个显示器刷新频率的问题 (100分)

  • 主题发起人 主题发起人 pci8319
  • 开始时间 开始时间
P

pci8319

Unregistered / Unconfirmed
GUEST, unregistred user!
当程序改变显示分辨率后,显示器的刷新频率总是改为最小值(如60Hz).哪位高手指点一下,在改变显示分辨率后,显示器能保持原来的刷新频率(当然是安全范围内)。不知是否有更改刷新频率的函数?
 
应该不行。
 
不是60HZ,而是默认对每一个分辨率都有相应的刷新率的记录
 
同意楼上的,在改变分辨率后,重新改变刷新率不就行了
 
跟驱动程序有关
 
用API
EnumDisplaySettings() 和ChangeDisplaySettings()
BOOL EnumDisplaySettings(

LPCTSTR lpszDeviceName, // specifies the display device
DWORD iModeNum, // specifies the graphics mode
LPDEVMODE lpDevMode // points to structure to receive settings
);
第三個參數
lpDevMode

Pointer to a DEVMODE structure into which the function stores information about the specified graphics mode.
The EnumDisplaySettings function sets values for the following five DEVMODE members:

dmBitsPerPel
dmPelsWidth
dmPelsHeight
dmDisplayFlags
dmDisplayFrequency //這個用來改刷新率是用的。



 
谢谢各位!发分.
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
1K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
926
SUNSTONE的Delphi笔记
S
后退
顶部