返回列表 发帖

[原创]重置屏幕分辨率

ChangeDisplaySettings,
关键就是这个函数了,如果大家看得有些迷糊,比如参数不了解,偶这里把msdn上的详细说明帖出来:
//////////////////////////////////////////////////////////////////////
The ChangeDisplaySettings function changes the settings of the default display device to the specified graphics mode.
To change the settings of a specified display device, use the ChangeDisplaySettingsEx function.
LONG The ChangeDisplaySettings function changes the settings of the default display device to the specified graphics mode.
To change the settings of a specified display device, use the ChangeDisplaySettingsEx function.
LONG ChangeDisplaySettings(
  LPDEVMODE lpDevMode,  // graphics mode
  DWORD dwflags         // graphics mode options
);
The ChangeDisplaySettings function changes the settings of the default display device to the specified graphics mode.
To change the settings of a specified display device, use the ChangeDisplaySettingsEx function.
LONG ChangeDisplaySettings(
  LPDEVMODE lpDevMode,  // graphics mode
  DWORD dwflags         // graphics mode options
);
ChangeDisplaySettings函数是一个功能强大的用来修改一个指定的显示设备的设置的.
其中第一个参数LPDEVMODE是一个指向一个DEVMODE结构体的指针.可以在此结构体中设置你要修改的显示选项,包括分辨率,
第二个参数dwflags 表明了你要修改设置的模式,比如是动态的,还是立即修改或者先保存等...
        

TOP

返回列表 回复 发帖