CString tStr = "Mp3 File(*.mp3)|*.mp3|"; tStr += "Wma File(*.wma)|*.wma|"; tStr += "Avi File(*.avi)|*.avi|"; tStr += "Mid File(*.mid)|*.mid|"; tStr += "Mpeg File(*.mpeg)|*.mpeg|"; tStr += "All Files(*.*)| *.*||"; CFileDialog tFileDlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, tStr, NULL); if (IDOK == tFileDlg.DoModal()) { } else { }
VC打开对话框
2023-10-20 21:30:04