-
May 25th, 2011, 03:50 PM
#1
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
-
May 25th, 2011, 06:20 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|