News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

how to use GDI to draw on second monitor4ktv?

Started by daydreamer, March 13, 2018, 06:33:17 AM

Previous topic - Next topic

daydreamer

is there a way to detect secondary screen and move window to secondary screen Before start rendering fullscreen game there?
my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding

aw27

Quote from: daydreamer 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?

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.