Capture screenshot of hidden desktop

风流意气都作罢 提交于 2019-12-03 20:07:18

问题


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....

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

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

Thanks in advance.


回答1:


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



来源:https://stackoverflow.com/questions/10375509/capture-screenshot-of-hidden-desktop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!