Hi, Does anybody know how to enable/disable a secondary monitor using ChangeDisplaySettingsEx or any other function?

Why not just do it manually? It'l take less time than that way.

I need it completely disabled for my game to work. My game runs slow with both monitors enabled, so I wanted to make a one click program to disable one of the monitors rather than go through the display properties every time.

I need something to change the display settings from "extend these displays" to "show desktop only on 2"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.