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.
Printable View
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.
CWnd::MoveWindow() or CWnd::SetWindowPos()
Rail
Recording Engineer/Software Developer
Rail Jon Rogut Software
[email protected]
http://home.earthlink.net/~railro/
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.