What are the good layout managers for MFC apps ?
Solution 1this->SetWindowPos(NULL,0,0,newWidth,newHeight,SWP_NOMOVE | SWP_NOZORDER); This will change the size of the dialog, but you will need to move and resize the control inside the dialog using the same function but with the CWnd of the control.
To create a modeless dialog box, call your public constructor and then call the dialog object's Create member function to load the dialog resource. You can call Create either during or after the constructor call. If the dialog resource has the property WS_VISIBLE, the dialog box appears immediately.
To create an MFC forms or dialog-based applicationFrom the main menu, choose File > New > Project. Under the Installed templates, choose Visual C++ > MFC. Choose MFC Application from the center pane. Click Next to start the MFC Application Wizard.
For MFC dialogs, have a look at ResizableLib.
I have been using http://www.codeproject.com/KB/dialog/layoutmgr.aspx for years, it's great. I have yet to find a situation where I can't get a certain layout done with this class. The only thing I 'miss' is a visual layout designer, but I don't think there's a layout manager that has one.
MFC resizer with anchor properties
http://www.codeproject.com/KB/dialog/WndResizer.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With