15,979
社区成员
发帖
与我相关
我的任务
分享
void CChildFrame::ActivateFrame(int nCmdShow)
{
// TODO: Add your specialized code here and/or call the base class
CMDIChildWnd::ActivateFrame(nCmdShow);
ShowWindow(SW_HIDE);
}
void CChildFrame::ActivateFrame(int nCmdShow)
{
// TODO: Add your specialized code here and/or call the base class
CMDIChildWnd::ActivateFrame(nCmdShow);
ShowWindow(SW_HIDE);
}
//加这一句即可
(pMainFrame->MDIGetActive())->ShowWindow(SW_HIDE);
pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->UpdateWindow();