You can create a window, then you can list all Windows with the WS_OVERLAPPEDWINDOW style, select those that belong to the application that you want to place, then call SetParent in the window, set the parent element to the window you created. You can also use FindWindow to find a window by its name.
All the windows inside the house never leave the borders of the window of the house, but they still adhere to all the same rules. You can still click and drag windows, etc.
The problem is that if the application inside the house creates another window, its parent will most likely be the desktop window, and not the home window.
source share