隐藏MFC对话框程序主窗口:1.不在桌面任务栏显示ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW);2.使用SetPos设置0::SetWindowPos(m_hWnd, NULL, 0, 0, 0, 0, 0);
关闭主窗口对话框:CDialog* pDlg =reinterpret_cast<CDialog*>(AfxGetApp()->GetMainWnd()); pDlg->EndDialog(IDOK);
Powered by: C++博客 Copyright © Enic