主窗口的指针保存在CWinThread::m_pMainWnd中,调用AfxGetMainWnd实现。
AfxGetMainWnd()->ShowWindow(SW_SHOWMAXIMIZED) //使程序最大化