Author Topic: how to use GDI to draw on second monitor4ktv?  (Read 795 times)

daydreamer

  • Member
  • ****
  • Posts: 941
  • watch Chebyshev on the backside of the Moon
how to use GDI to draw on second monitor4ktv?
« on: March 13, 2018, 06:33:17 AM »
is there a way to detect secondary screen and move window to secondary screen Before start rendering fullscreen game there?
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D

AW

  • Member
  • *****
  • Posts: 2434
  • Let's Make ASM Great Again!
Re: how to use GDI to draw on second monitor4ktv?
« Reply #1 on: March 13, 2018, 06:56:25 AM »
is there a way to detect secondary screen and move window to secondary screen Before start rendering fullscreen game there?

EnumDisplayDevices + EnumDisplaySettings will give you all the information, namely where each screen starts and ends.
Note that the process is iterative, not all devices matter, but basically you should look for devices with flags DISPLAY_DEVICE_ATTACHED_TO_DESKTOP and DISPLAY_DEVICE_ACTIVE.