Parenting Windows
Posted: Wed Jul 28, 2004 8:25 pm
Before anyone says... 'Use the WinAPI'
I am trying to keep far away from platform dependant functions as possible. What I want to do is basically something similar to MDI, and for this i need the Child Window to draw inside the Parent Window.
Now the long route i know to do this is to fake it, and have the child Window alter itself to always be inside the other window. This would become exceedingly difficult as Windows would *always* have to be within the boundries of the Parent.
Can anyone explain or even better show me a working example of how to get the Child/Parent Windowing to work like a contained Window?
I am trying to keep far away from platform dependant functions as possible. What I want to do is basically something similar to MDI, and for this i need the Child Window to draw inside the Parent Window.
Now the long route i know to do this is to fake it, and have the child Window alter itself to always be inside the other window. This would become exceedingly difficult as Windows would *always* have to be within the boundries of the Parent.
Can anyone explain or even better show me a working example of how to get the Child/Parent Windowing to work like a contained Window?