I'm just trying to embed a window from my process into the window of an external process using the SetParent function, but I find out the application can't switch back after minimizing.
The embedded window is WS_OVERLAPPEDWINDOW style, changing it to WS_CHILD can handle this issue. But we need WS_OVERLAPPEDWINDOW for other reasons.
Is anyone can give me a hand of this?