文件对话框

char szFilter[] = "TEXT files(*.txt)|*.txt";
    CFileDialog dlg(1, NULL, NULL, NULL, szFilter);
    if (dlg.DoModal() == IDOK)
    {
        m_path = dlg.GetPathName();
    }
    UpdateData(false);
原文地址:https://www.cnblogs.com/klxll/p/3423659.html