隱藏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