// TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return TRUE; }
可以在呢的×××APP.cpp文件的InitInstance() 中如下设置 int nR = 800; //窗口的宽 int nL = 600;//窗口的长 m_pMainWnd->SetWindowPos(0,0,0,nR,nL,SWP_SHOWWINDOW); m_pMainWnd->CenterWindow(); //窗口置于中心 m_pMainWnd->UpdateWindow();
//change rect
MoveWindow(&rect);
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs return TRUE;
}
中如下设置
int nR = 800; //窗口的宽
int nL = 600;//窗口的长
m_pMainWnd->SetWindowPos(0,0,0,nR,nL,SWP_SHOWWINDOW);
m_pMainWnd->CenterWindow(); //窗口置于中心
m_pMainWnd->UpdateWindow();