MFC 更改另一个显示器分辨率
MFC change another monitor resolution
我的电脑有两个显示器,主显示器的分辨率是800*600,另一个显示器的分辨率是1600*900。
我想在我自己的应用程序中将第二台显示器的分辨率更改为 1024*768。
我该怎么做?
您应该能够使用以下方式枚举显示器:EnumDisplayDevices - it will give you a name in DISPLAY_DEVICE::DeviceName
which is needed by following two functions. Once you find your display use EnumDisplaySettingsEx to verify if new resolution is correct then use ChangeDisplaySettingsEx 进行实际分辨率更改
我的电脑有两个显示器,主显示器的分辨率是800*600,另一个显示器的分辨率是1600*900。
我想在我自己的应用程序中将第二台显示器的分辨率更改为 1024*768。
我该怎么做?
您应该能够使用以下方式枚举显示器:EnumDisplayDevices - it will give you a name in DISPLAY_DEVICE::DeviceName
which is needed by following two functions. Once you find your display use EnumDisplaySettingsEx to verify if new resolution is correct then use ChangeDisplaySettingsEx 进行实际分辨率更改