luyuxibaby
CFileDialog dlg(true);
 dlg.m_ofn.lpstrInitialDir = "f:\新建文件夹";

CFileDialog dlg(true,NULL,NULL,OFN_HIDEREADONLY|
OFN_OVERWRITEPROMPT,"文本文件(*.txt)|*.txt||");
dlg.m_ofn.lpstrInitialDir = "f:\";

CFileDialog dlg(true,NULL, NULL,  OFN_ALLOWMULTISELECT|OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT);

  if(IDOK == dlg.DoModal())
  {

  for(POSITION  pos = dlg.GetStartPosition() ; NULL != pos ; )

  {

   CString strFileName = dlg.GetNextPathName(pos);
         AfxMessageBox(strFileName);
  }
  }

 if(IDOK == dlg.DoModal())
 {
  //...
 }

 

分类:

技术点:

相关文章:

  • 2021-04-28
  • 2021-12-22
  • 2022-12-23
  • 2021-06-23
  • 2021-05-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-08-31
  • 2021-11-25
  • 2021-07-31
相关资源
相似解决方案