Re: Setting the Window size
You just set the CREATESTRUCT to the disered width, hieght, and starting position :
Look up CREATESTRUCT in the msdn libraray
example:
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CMDIFrameWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.cx = ?;
cs.cy = ?;
cs.x = ?;
cs.y = ?;
return TRUE;
}
Re: Setting the Window size
You should determine the size you want before call
CWnd::PreCreateWindow
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.cx = ?;
cs.cy = ?;
cs.x = ?;
cs.y = ?;
return CFrameWnd::PreCreateWindow(cs);
}
Good luck.