I have been playing around with the SetParent API and what I have so far is the following...
In program1 I have a MDIParent with a MDIChild. In program2 I have a form that I use the SetParent API to set the parent of this form to the MDIChild of program1 (maximized of course).
Now here is the problem...
When I resize program1 (the MDIParent) the MDIChild in program1 resizes like it is supposed to (maximized), but the form in program2 does not. Now I did not expect it too either but for the life of me I can't remember how to send a resize or maximize message to program2's form.
BTW, you can assume that I do have the handles to all the windows. I have used the SendMessage API to pass the window handles between the two programs.
Thanks for reading this far.