Attaching an external window as a child on a dialog

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="font-size: 8pt; color: black; font-family: "Verdana","sans-serif"; mso-fareast-font-family: Times New Roman; mso-bidi-font-family: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: RU; mso-bidi-language: AR-SA;" lang="EN-US It is necessary to mount a window from another process as a child on a dialog. I make the first (external) app the simple MFC dialog based as well as the second (host), and need to show a whole of the first one on the host window. This is a sort of hack indeed, but i have to go this way. All done satisfactory (using hooks), but there is a question with painting. Why does such a child draws itself with some minor artifacts (e.g. when i move another window over it) from time to time? Mention must be made it was necessary to do some manipulations with clients window long, setting WS_OVERLAPPED and WS_CHILD for example. Is it possible to get normal rendering in this case? What is the root cause of the problem, maybe due to the drawing happens in different UI threads?

View the full article
 
Back
Top