Hi CaptainChaos

Welcome to WinFlip Messageboard.
What i dont know is how to capture the minimized windows. If a window is minimized and i capture it with PrintWindow i only get the window caption. i hoped you guys could tell me what calls i have to do.
do i have to set up a hook to intercept minimize events or something like that?
It's not so big problem.
What you have to do is,
ShowWindow(hWndTarget, SW_RESTORE);
Then capture window as you mentioned,
ShowWindow(hWndTarget, SW_MINIMIZE);
That's it.
But the window resize animation obstructs the quick action.
Therefore, you should disable it.
ANIMATIONINFO AnimationDisable={sizeof(ANIMATIONINFO), 0};
SystemParametersInfo(SPI_SETANIMATION, sizeof(ANIMATIONINFO), &AnimationDisable, 0);
and enable it after capturing a window.
ANIMATIONINFO AnimationEnable={sizeof(ANIMATIONINFO), 1};
SystemParametersInfo(SPI_SETANIMATION, sizeof(ANIMATIONINFO), &AnimationEnable, 0);
You have to check the resize animation is enabled or disabled before proceed the code above. Somecases the resize animation is already disabled. At that case you should not change the setting.
use SPI_GETANIMATION to check it.
Good luck.
Koji