disable twinview and desktop spanning

Does anyone know how to programmatically set display settings to only use “1 single monitor”??? I have an opengl app that doesn’t display correctly if the user is spanning their desktop accross more than one monitor…so I need a way to disable the desktop spanning, and ensure that only 1 primary monitor is being used to display the app. Any ideas??

thanks in advance!

  • Alex