CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  界面

关于CFileDialog 的问题,在线等,马上给分

楼主sam801025()2003-12-01 18:39:23 在 VC/MFC / 界面 提问

我想改变CFileDialog   对话矿的标题,及打开按钮的文本,该怎么办,请各位  
  高手指点!!!! 问题点数:20、回复次数:5Top

1 楼eastred(东方红)回复于 2003-12-01 18:43:45 得分 2

CFileDialog(  
  BOOL   bOpenFileDialog,  
  LPCTSTR   lpszDefExt   =   NULL,  
  LPCTSTR   lpszFileName   =   NULL,  
  DWORD   dwFlags   =   OFN_HIDEREADONLY   |   OFN_OVERWRITEPROMPT,  
  LPCTSTR   lpszFilter   =   NULL,  
  CWnd*   pParentWnd   =   NULL);    
   
  Parameters  
  bOpenFileDialog    
  Set   to   TRUE   to   construct   a   File   Open   dialog   box   or   FALSE   to   construct   a   File   Save   As   dialog   box.    
   
  lpszDefExt    
  Specifies   the   default   filename   extension.   If   the   user   does   not   include   an   extension   in   the   filename   edit   box,   the   extension   specified   by   lpszDefExt   is   automatically   appended   to   the   filename.   If   this   parameter   is   NULL,   no   file   extension   is   appended.    
   
  lpszFileName    
  Specifies   the   initial   filename   that   appears   in   the   filename   edit   box.   If   NULL,   no   filename   initially   appears.    
   
  dwFlags    
  Specifies   a   combination   of   one   or   more   flags   that   allow   you   to   customize   the   dialog   box.   For   a   description   of   these   flags,   see   the   OPENFILENAME   structure.   If   you   modify   the   m_ofn.Flags   structure   member,   use   a   bitwise-OR   operator   in   your   changes   to   keep   the   default   behavior   intact.    
   
  lpszFilter    
  Specifies   a   series   of   string   pairs   that   specify   filters   you   can   apply   to   the   file.   If   you   specify   file   filters,   only   selected   files   will   appear   in   the   Files   list   box.   See   the   Remarks   section   for   more   information   on   how   to   work   with   file   filters.    
   
  pParentWnd    
  Specifies   a   pointer   to   the   parent   or   owner   window   of   a   file   dialog-box   object.    
  Top

2 楼phoenixli(feitian)回复于 2003-12-01 20:02:36 得分 2

只有从CFileDialog派生一个新类了。Top

3 楼dylang(眼睫毛)回复于 2003-12-01 22:00:46 得分 1

打开按钮的文本?Top

4 楼dylang(眼睫毛)回复于 2003-12-01 22:02:53 得分 1

按钮的文本自己定义啊,  
  不太明白你的意思  
  在按钮函数里作CFileDialog操作啊Top

5 楼flyelf(空谷清音)回复于 2003-12-02 09:42:19 得分 14

从CFileDialog派生一个新类,如CMyFileDialog  
  在OnInitialUpdate中更改  
  ::SendMessage( GetParent()->GetDlgItem(IDOK)->GetSafeHwnd(),  
  WM_SETTEXT,   0,   (LPARAM)_T("YourCaption(&Y):"));  
  Top

相关问题

  • 在线等,马上给分……
  • 送分 请教CFileDialog 类的问题 在线等
  • 在线,简单,马上给分 ,多分!
  • 简单问题,在线等,马上解决马上给分
  • 在线等候,成功马上加分!!!
  • 找错,马上给分,在线等待
  • 在线求助,马上给分!!!
  • 在线等待,马上结分
  • 菜鸟问题,在线马上给分
  • 在线等的问题,马上给分

关键词

  • null
  • cfiledialog
  • lpszdefext
  • specifies
  • ofn
  • 按钮
  • box
  • dialog
  • extension
  • filename

得分解答快速导航

  • 帖主:sam801025
  • eastred
  • phoenixli
  • dylang
  • dylang
  • flyelf

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo