https://www.cnblogs.com/mengfanrong/p/4382111.html
https://blog.csdn.net/qq_24127015/article/details/83342641
https://blog.csdn.net/zhiweiyouzhishenghuo/article/details/7255440
1、重启动界面
// 判断是否需要重新启动窗口 if (m_bRestartFlag) { CString strFileName = _T(""); GetModuleFileName(NULL, strFileName.GetBuffer(MAX_PATH), MAX_PATH); ShellExecute(NULL, _T(""), strFileName, NULL, NULL, SW_SHOWNORMAL); strFileName.ReleaseBuffer(); }