CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2003
    Location
    India
    Posts
    29

    Resize form (CFormView) at runtime

    Hello All,

    I have a form with a chart control and as the chart is zoomed I also want the form to be resized (with scroll bars). How do I resize the form.
    Ms. Rajmathi

  2. #2
    Join Date
    Sep 1999
    Location
    Colorado, USA
    Posts
    1,002
    Normally a view is resized by getting the parent of the view and calling MoveWindow(). The child view should resize with the parent.

    If this is an MDI app, then you will need to get the MDI Client window, it's client rect and move the frame window within the MDI client.

    Steve

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