The MASM Forum

General => The Campus => Topic started by: Ar0n on December 26, 2015, 06:37:56 PM

Title: Emulating multiple monitors
Post by: Ar0n on December 26, 2015, 06:37:56 PM
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.
Title: Re: Emulating multiple monitors
Post by: ragdog on December 26, 2015, 09:05:11 PM
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