Click here to Skip to main content

C / C++ / MFC

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
AnswerRe: RST Template Matching PinmemberTim Craig10:45 22 Mar '10  
GeneralRe: RST Template Matching Pinmembercherrymotion12:05 22 Mar '10  
GeneralRe: RST Template Matching PinmemberTim Craig14:48 22 Mar '10  
GeneralRe: RST Template Matching Pinmembercherrymotion12:18 23 Mar '10  
GeneralRe: RST Template Matching PinmemberTim Craig13:53 23 Mar '10  
GeneralRe: RST Template Matching Pinmembercherrymotion7:46 25 Mar '10  
QuestionModeless dialog frame sizing in MFC MDI PinmemberVaclav_Sal4:38 22 Mar '10  
Could someone more experienced with dialog frame sizing clarify for me how does MFC MDI determines the size of the MDIChildFrame?  
My modeless dialog is in FormView ( Property Sheet component) and I can re-size that by changing the dialog resource. I am using tabs and the dialog frame follows the largest tab / page.
When I use ResizeParentToFit() in OnInitialUpdate   of the FromView I end up with a small frame.
However, when I skip the ResizeParentToFit() and use ShowWindow(SW_SHOWMAXIMIZED) I get different , large, FormView frame.
I stepped thru the ResizeParentToFit() and still do not see where are   the view area dimensions coming from. They seems to be the actual dimensions used by ResizeParentToFit() and ShowWindow(SW_SHOWMAXIMIZED) .
 
What I really want is to maximize the FormView programatically to fit the whole MainFrame.
The automatic sizing the dialog frame itself is fine, but not exactly what I want.
Any constructive help is as always appreciated.
Thanks for your time.
Vaclav
AnswerRe: Modeless dialog frame sizing in MFC MDI PinmemberKarstenK6:00 22 Mar '10  
GeneralRe: Modeless dialog frame sizing in MFC MDI PinmemberVaclav_Sal7:02 22 Mar '10  
Questionlarger toolbar images Pinmemberjosip cagalj2:12 22 Mar '10  
AnswerRe: larger toolbar images Pinmembermesajflaviu9:55 22 Mar '10  
GeneralRe: larger toolbar images Pinmemberjosip cagalj0:27 23 Mar '10  
AnswerRe: larger toolbar images Pinmemberjosip cagalj4:05 24 Mar '10  
Questionmaking a modelessdialog box as modal Pinmembernarayanagvs2:06 22 Mar '10  
AnswerRe: making a modelessdialog box as modal PinmemberRejeesh.T.S2:11 22 Mar '10  
GeneralRe: making a modelessdialog box as modal Pinmembernarayanagvs2:33 22 Mar '10  
GeneralRe: making a modelessdialog box as modal PinmemberAlison P2:45 22 Mar '10  
GeneralRe: making a modelessdialog box as modal Pinmembernarayanagvs3:11 22 Mar '10  
GeneralRe: making a modelessdialog box as modal PinmemberAlison P3:20 22 Mar '10  
AnswerRe: making a modelessdialog box as modal PinmemberAlison P2:12 22 Mar '10  
AnswerRe: making a modelessdialog box as modal PinmemberMohan Ramachandra2:20 22 Mar '10  
AnswerRe: making a modelessdialog box as modal PinmemberKarstenK5:53 22 Mar '10  
QuestionVC++2008(graphics)! Pinmemberanassamar1:52 22 Mar '10  
AnswerRe: VC++2008(graphics)! PinmemberMohan Ramachandra2:32 22 Mar '10  
AnswerRe: VC++2008(graphics)! PinmemberAvi Berger5:58 22 Mar '10  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.5.120210.1 | Last Updated 14 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid