Is there any way to display window created in another application inside the frame (window) in other application. Circumstances are:
- Application obtains frame-applications window handle with FindWindow(...)
- Application (MFC) creates a window (CDialog ancestor) with Create and gives queried handle as a parent parameter
- Application notifies frame-application with PostMessage that window is created. frame-application then tries to move the window in right position inside its frame
Depending on tricks (SetParent, SetPos etc...) best I can do is that window appears inside frame-applications frame in weird location and does not move regardless what I do. Window is also not displayed properly (transparent caption etc...)
In general (if possible) what would be a proper way to achieve this kind of behauviour ?
- Application obtains frame-applications window handle with FindWindow(...)
- Application (MFC) creates a window (CDialog ancestor) with Create and gives queried handle as a parent parameter
- Application notifies frame-application with PostMessage that window is created. frame-application then tries to move the window in right position inside its frame
Depending on tricks (SetParent, SetPos etc...) best I can do is that window appears inside frame-applications frame in weird location and does not move regardless what I do. Window is also not displayed properly (transparent caption etc...)
In general (if possible) what would be a proper way to achieve this kind of behauviour ?