问题
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