C++ MFC / VS2013 之十五(对话框:文件对话框)


  1. void CExample17Dlg::OnBnClickedOpenButton()
  2. {
  3. // TODO: Add your control notification handler code here
  4. // 设置过滤器
  5. // 构造打开文件对话框
  6. CFileDialog fileDlg(TRUE, _T("txt"), NULL, 0, szFilter, this);
  7. CString strFilePath;
  8. // 显示打开文件对话框
  9. if (IDOK == fileDlg.DoModal())
  10. {

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2017年9月7日
下一篇 2017年9月7日

相关推荐