My game, like most games, supports running in fullscreen exclusive mode. And I'd like to give my players the choice of which monitor the game will display on.
In order to prevent the player from clicking through to the desktop, I need to position my game window to exactly cover the entire monitor's area.
My game works fine when displaying on adapter 0. I simply set the window's location to 0,0 and its size to the fullscreen resolution.
However, this doesn't work if the player chooses a different monitor. The game will render on the correct monitor, but the window will still be located on the primary monitor.
How do I determine the location for my window when the player chooses a monitor other than 0?