News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Emulating multiple monitors

Started by Ar0n, December 26, 2015, 06:37:56 PM

Previous topic - Next topic

Ar0n

Hello guys, my goal is to create 2 desktops (each emulates a monitor)  and show a preview of the desktop(s) by taking a screenshot of each. Tried using Bitblt but it failed so I'm trying with PrintWindow, it returns TRUE, but for some reason the bitmap is all black! If I use SwitchDesktop, it works but I don't want to switch just to take a screenshot ( it takes like 3 seconds to switch between desktops). sorry if it's noob question, I'm a little newbie using the GDI functions. attached the code.

ragdog

Hello

Here on Board gives Screenshot capture source or here a good Article
https://msdn.microsoft.com/en-us/library/windows/desktop/dd183402%28v=vs.85%29.aspx