Home > Software engineering > Bosses, use the wizard to generate single document and no document/view architecture support program
Bosses, use the wizard to generate single document and no document/view architecture support program
Time:11-15
The early application of generated three CPP file, respectively is MainFrm CPP, ChildView. CPP and a project name. CPP, adjust the size of the window where ah, help!
CodePudding user response:
CMainFrame: : Cx, afx_msg void OnSize (UINT nType, int int cy); ON_WM_SIZE () Void CMainFrame: : OnSize (UINT nType, cx, int int cy) { CFrameWnd: : OnSize (cx, nType, cy); CRect rc; M_wndToolBar. GetWindowRect (& amp; Rc); M_ToolBarHeight=rc. Height ();//24 + GetSystemMetrics (SM_CYEDGE); // M_frmWidth=cx. M_frmHeight=cy - m_ToolBarHeight + 1; M_frmChildX=cx/m_CurrentRow; M_frmChildY=m_frmHeight/m_CurrentCol; //TODO: Add your message handler code here }