CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    15

    Howto: Change the size of an Dialog?

    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.



  2. #2
    Join Date
    May 1999
    Location
    CA, USA
    Posts
    586

    Re: Howto: Change the size of an Dialog?

    CWnd::MoveWindow() or CWnd::SetWindowPos()

    Rail

    Recording Engineer/Software Developer
    Rail Jon Rogut Software
    [email protected]
    http://home.earthlink.net/~railro/

  3. #3
    Join Date
    May 1999
    Location
    Md
    Posts
    4

    Re: Howto: Change the size of an Dialog?

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured