捕获隐藏桌面的屏幕截图 [英] Capture screenshot of hidden desktop

查看:148
本文介绍了捕获隐藏桌面的屏幕截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows上使用虚拟桌面使用简单的应用程序,我用C ++自己编码,我想知道是否有办法捕获次要/隐藏桌面的屏幕截图?
我知道我可以做SwitchDesktop - >捕获截图 - > SwitchDesktop,但它不是听起来像很好的解决方案....

I am using virtual desktops on Windows using simple app that i coded myself in C++, i was wondering if there is way to capture screenshot of secondary/hidden desktop ? I know that i can do SwitchDesktop -> capture screenshot -> SwitchDesktop, but it doesnt sound like good solution....

也许我运行一些窗口在隐藏的桌面,得到它的hwnd和SOMEHOW使用它来捕获整个屏幕?

Maybe i run some window in the hidden desktop, to get its hwnd and SOMEHOW to use it to capture the entire screen ?

我已经运行Spy ++,但似乎没有找到不属于目前的窗口

I have run Spy++ but seems it not finding windows that dont belong to currently active desktop.

提前感谢。

推荐答案

在没有XP支持的情况下,此文章说明了如何使用 DWM API 可获取不可见桌面的屏幕截图。

If you could live without XP support this article explains how to use DWM API for getting screenshot of the invisible desktop.

这篇关于捕获隐藏桌面的屏幕截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆