kvarnerexpress 0 Report post Posted July 20, 2005 Is there some special trick used in vc++ to have the controls automatically move and resize when the main dialog is resized?For example when I create a new default dialog with the resource editor, it puts and OK and Cancel button in the top right corner of the dialog. When you resize the dialog in design view they move with it so they stay in the same relative position, but when i run it, and then resize the form they stay in the same spot and the border moves farther from them.If theres a simple built in trick for it that is good, if its done through code and the resize message, then i wont really worry about it. Share this post Link to post Share on other sites
SystemWisdom 0 Report post Posted July 21, 2005 You should check out 'Docking', it requires no code at all, just proper placement of controls within docked panels.Docking allows you to 'Float' controls to the Top, Bottom, Left, Right or Fill, and when used together, you could have a control float to the Top-Right of your application while it resizes...Docking is usually done by adding a panel control (or some other containment control) to your form, and then specify the Dock position in the Properties Window of VC++ for that control.I hope that helps! Share this post Link to post Share on other sites