Resize a dialog window

I am writing a Dialog based app using MFC. I am calling a dialog window from the main window. How can I change the size of the dialog window when it is started up and when it is running(by clicking on a button)?
Thanks in advance.
michaelzhangAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jhanceConnect With a Mentor Commented:
Use the MoveWindow() member function to move or resize a CDialog window.
0
 
michaelzhangAuthor Commented:
Edited text of question.
0
 
captainkirkCommented:
do you want to:
1) specify the size of the dialog somehow after you click the button,
2)do you wish to change the style of the dialog so that you can resize it with the mouse
3) set the size in code as you call up the dialog??

0
All Courses

From novice to tech pro — start learning today.