重启动界面 ShellExecute() ShellExecute()

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();
    }

 

posted @ 2019-06-04 17:53  kuaqi  阅读(255)  评论(0编辑  收藏  举报