views:

8

answers:

0

I'm writing an app that can minimize or restore other, external apps' windows. However, when I do this, the windows will usually just minimize or restore directly, without the zoom/collapse animation effect that you normally see. Or, in some cases, minimizing will cause the window to fade, but not collapse.

I've tried posting or sending WM_SYSCOMMAND messages with SC_MINIMIZE or SC_RESTORE, calling ShowWindow, trying to use AnimateWindow or even SetWindowPlacement. None of these seem to give the correct animated result. I seem to remember reading, a long time ago, about an API that took two rectangles and performed a zoom/collapse animation from one to the other. If so, then I can't remember what the API is or find it in MSDN.

Does anyone know how this can be done? Thanks!