
-----------------------------------
deville75
Wed Jan 31, 2007 9:56 am

how to limit the position of Dialog Boxes to it's parent window
-----------------------------------
Hey, it's me again with more Win32 help needed.

There are some programs I've used that contain multiple windows or dialog boxes that all stay within the parent window.  How do I accomplish this.  Basically I want the windows to only be able to staye within the parent window.  So the user will not be able to move a dialog box outside of the parent window.  A good example of what exactly I want is when you use VC++ the windows (if 'Restored') are all contained within the parent window. It's as if the parent window is an OS, for example, and the child windows are all contained.  

Any idea how to do this?

-----------------------------------
rdrake
Wed Jan 31, 2007 10:07 am

RE:how to limit the position of Dialog Boxes to it\'s parent window
-----------------------------------
You'll want to lookup [url=http://en.wikipedia.org/wiki/Multiple_document_interface]MDI in order to accomplish such a thing.

-----------------------------------
wtd
Wed Jan 31, 2007 11:41 am

RE:how to limit the position of Dialog Boxes to it\'s parent window
-----------------------------------
What he said.  :)

-----------------------------------
deville75
Wed Jan 31, 2007 1:52 pm

RE:how to limit the position of Dialog Boxes to it\'s parent window
-----------------------------------
Cool, got it.. I found some good stuff.. thanks!
