title: Changing monitor settings (Windows API)
body: <p>I've figured out how to get the display device settings and change the display device settings using the Windows API in Visual C++. (EnumDisplayDevice, EnumDisplaySettings, and ChangeDisplaySettings)</p>
  
  <p>However, I have 4 different "monitors" if you will, that I would like to configure, but having different settings for multiple configurations.</p>
  
  <p>One configuration involves settings extending the desktop to 3 monitors, with the 4th one being disabled, and the monitors set up like [Monitor 3] [Monitor 1 - Main] [Monitor 2].</p>
  
  <p>The other configurations being [Monitor 3/4 - Duplicated] [Monitor 1 - Main] [Monitor 2] and [Monitor 3/4 - Main/Duplicated] with 1 and 2 being disabled.</p>
  
  <p>Looking through the API documentation, there is something about DEVMODE POINTL dmPosition which I think refers to where the monitor is. Im wondering if the Windows API will automatically tell the monitors to duplicate or extend based on where the positioning of the screen is.</p>
  
  <p>Has anyone done something similar to this and comment on how to go about doing this?</p>