CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2002
    Location
    New -york ny
    Posts
    22

    Maximizing SDI app

    Hello fellows !
    I'm having some hardtime finding out how to size my SDI app to fit the screen by clicking the maximize button .My view calss inherited from CFormView and I added controls on the dialog template .Now I want the conrols to resize and fit the maximized window .I'm trying to use the SetScaleToFitSize() function but I don't really know how to pass its arguments.If this is the right function I should use ,can somebody please tell me how to use it? if not please help me solve this problem cause I'm really eager to get this problem solved because I don' t feel good seeing the controls samll within a full screen window.
    Thhank you .

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940
    You have to dynamically resize all your controls to the size they need to be depending on the view size.

    You can do this inside of the OnSize handler (ON_WM_SIZE) of your Form View.

    Darwen.

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