主窗口的最大化方法:
在CTestApp::InitInstance()中将
pMainFrame->ShowWindow(m_nCmdShow);改为
pMainFrame->ShowWindow(SW_MAXIMIZE);
文档的最大化方法:
CChildWnd中增加虚函数:
void CChildFrame::ActivateFrame(int nCmdShow)
{
// TODO: Add your specialized code here and/or call the base class
nCmdShow = SW_SHOWMAXIMIZED; //设置打开方式
CMDIChildWnd::ActivateFrame(nCmdShow);
}