I have an application with a main window which execute a number of child applications in other windows.
When minimize the main window, I call ::ShowWindow(HWND, SW_HIDE) to hide all the child window (only the main window minimized on task bar).
The problem is some applications are called by a hidden program (proxy). When I call minimize, the proxy programs will hide their sub programs (so this is fine) but when I call restore these hidden programs restore (and restore it's sub program) so on my destop have a pair of window, one is the child application, one is the hidden program which is now visible that show a blank window.
Someone suggest me to make custom message WM_Custom_Wnd with contants WPARAM 0 = Hide, 1 = Restore... so when the proxy program receive "Restore" it will call it's child to restore but not itself.
Can anyone help me with more details about coding ? If you understand what I'm writing please reply and I'll show more about my current code. Thanks