————————————————————————————————

经常遇到程序里面用了一个...按钮 单击后打开一个对话框 获取输入的路径

下面就是这段代码 其实很简单  只不过 不知道而已

CFileDialog dlg(1,NULL,NULL,OFN_HIDEREADONLY ,"All Files(*.*)|*.*||");
if(IDOK!=dlg.DoModal())
        return;
CString   strPath = dlg.GetPathName();


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2023-03-15
  • 2018-04-10
  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2018-08-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
相关资源
相似解决方案