如何去掉"All Files"? 100

gunNrose12987055 2006-08-28 10:55:49
我在我的单文档程序全路经检索"All Files"时,已经找不到了相应资源了,但是当应用程序生成并有打开操作时,打开对话框文件类型下拉框中的"All Files"选项却依然存在,我想在不重载OnFileOpen函数的前提下,删除"All Files".

thx.
...全文
345 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
gunNrose12987055 2006-08-29
  • 打赏
  • 举报
回复
seu07201213(【卐】〖鱼肉香丝〗≈^︵^≈)
请到http://community.csdn.net/Expert/topic/4976/4976154.xml?temp=.4338343 接分
gunNrose12987055 2006-08-28
  • 打赏
  • 举报
回复
原来如此,我感觉也是VC自动加上去的,谢谢
折腾_苏州 2006-08-28
  • 打赏
  • 举报
回复
VC98/MFC/SRC/DOCMGR.CPP
里有一段自动把*.*加进去的:
// append the "*.*" all files filter
CString allFilter;
VERIFY(allFilter.LoadString(AFX_IDS_ALLFILTER));
strFilter += allFilter;
strFilter += (TCHAR)'\0'; // next string please
strFilter += _T("*.*");
strFilter += (TCHAR)'\0'; // last string
dlgFile.m_ofn.nMaxCustFilter++;

dlgFile.m_ofn.lpstrFilter = strFilter;
dlgFile.m_ofn.lpstrTitle = title;
dlgFile.m_ofn.lpstrFile = fileName.GetBuffer(_MAX_PATH);
除非你改他,那不太好,还是重载吧
DentistryDoctor 2006-08-28
  • 打赏
  • 举报
回复
指定CFilDialog的OPENFILENAME.lpstrFilter?
gunNrose12987055 2006-08-28
  • 打赏
  • 举报
回复
另外50分在
http://community.csdn.net/Expert/topic/4976/4976154.xml?temp=.4338343

15,976

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧