Click to See Complete Forum and Search --> : Howto: Change the size of an Dialog?


kalle
May 13th, 1999, 06:04 AM
I can't find the propper function to change the size of an CDialog. I want to implement an 'More >>' button that shows extented information in this dialog.

Rail Jon Rogut
May 13th, 1999, 06:20 AM
CWnd::MoveWindow() or CWnd::SetWindowPos()

Rail

Recording Engineer/Software Developer
Rail Jon Rogut Software
railro@earthlink.net
http://home.earthlink.net/~railro/

Steve Mallis
May 13th, 1999, 09:51 AM
You might also want to see Windows 95 A Developer's Guide, by Jeffrey Richter. He discusses this very problem in Chapter 3, section Expanding/Shrinking Dialog Box. The solution does center around SetWindowPos(). You save the original size and determine the shrunk size from a static text control. He also shows how to enable/disable the controls in the dialog box as appropriate, and how to reposition the DB if necessary.

Steve M.