Computer Science Canada

how to limit the position of Dialog Boxes to it's parent window

Author:  deville75 [ Wed Jan 31, 2007 9:56 am ]
Post subject:  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?

Author:  rdrake [ Wed Jan 31, 2007 10:07 am ]
Post subject:  RE:how to limit the position of Dialog Boxes to it\'s parent window

You'll want to lookup MDI in order to accomplish such a thing.

Author:  wtd [ Wed Jan 31, 2007 11:41 am ]
Post subject:  RE:how to limit the position of Dialog Boxes to it\'s parent window

What he said. Smile

Author:  deville75 [ Wed Jan 31, 2007 1:52 pm ]
Post subject:  RE:how to limit the position of Dialog Boxes to it\'s parent window

Cool, got it.. I found some good stuff.. thanks!


: