CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2011
    Posts
    14

    Question How to control each new view window size in MDI application?

    Dear Guru,

    I construct a MDI based project and have several different types of documents. If the user starts to run the executable file, it will pop up a window titled "new", then the user can choose the type he likes. This step is built successfully in my code. My question is how I can control each new view window size, or say after the user clicks the type, it pops up a new window. How can I control the size of it? Can different type document has different frame window size? And the other question is how this size matchs up with a dialog contructed in the resouce file. If I build a derivated CFormView class related to the dialog IDD_VIEW. After the user clicks this type, the size of the window popping up is the same with the size of IDD_VIEW designed in the resource.

    Thanks!

    Jing

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: How to control each new view window size in MDI application?

    Look at overriding PreCreateWindow() to set the size then override Create and call ResizeParentToFit().

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