Programmatically changing the “presentation display mode”

后端 未结 3 1814
不知归路
不知归路 2020-12-09 00:22

The presentation display modes are those you see when using the Windows+p shortcut:

  1. Computer Only
  2. Duplicate
3条回答
  •  北海茫月
    2020-12-09 01:02

    You can obtain and change the display setting using EnumDisplaySettingsEx and ChangeDisplaySettingsEx:

    The ChangeDisplaySettingsEx function changes the settings of the specified display device to the specified graphics mode.

    Check this Codeproject project and this Stackoverflow question for example code

提交回复
热议问题