Using SendMessage to minimise another app
Posted on 2002-04-16
I'm trying to co-ordinate the windows of a multi-exe application.
From one exe, I can launch another exe (via Shell(), and work out the hWnd from the PID) and then kill it again using SendMessage(hWnd, WM_CLOSE).
What I want to do is minimise the windows of both exe at the same time (eg, when one is minimised, it tells the other one to minimise as well).
I can't find a suitable WM_ message in the API.