找回密码 注册 QQ登录
一站式解决方案

iCAx开思网

CAD/CAM/CAE/设计/模具 高清视频【积分说明】如何快速获得积分?快速3D打印 手板模型CNC加工服务在线3D打印服务,上传模型,自动报价
查看: 16138|回复: 2
打印 上一主题 下一主题

[求助] 设置对话框初始路径为“我的电脑”

[复制链接]
跳转到指定楼层
1
发表于 2009-5-14 22:09:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
使用UF_UI_create_filebox调出文件对话框 想把初始路径设置为 我的电脑
应该怎么操作 有没有人指点一下~~
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 赞一下!赞一下!
2
发表于 2009-5-16 08:46:51 | 只看该作者
Global DataUF_UI_create_filebox
Create an File Selection Box dialog.


See Also






extern int UF_UI_create_filebox (
char * prompt_string,
char * title_string,
char * filter_string,
char * default_name,
char * filename,
int * response );

char * prompt_stringInputText for standard prompt.
char * title_stringInputThe dialog title.
char * filter_stringInput/OutputThe initial value of filter_string is used to initialize
the Filter list and text field. If it contains only the
pattern and not the path, then "/current_dir/pattern"
is used for the filter. If it contains only the path
and not the pattern, then "\path\*" is used for the
filter. If the path doesn't exist,"\current_dir\*" is
used for the filter. On Unix when OK is selected from the
FSB dialog, the filter_string is the complete path+pattern
of the filter.

On NT, the FSB dialog doesn't have a filter edit box.
Therefore, when OK is selected, the returned filter_string
is always set to the folder + '*' + extension of the selected
file.

The user must allocate a buffer big enough to hold the
maximum possible file filter_string, which is
UF_CFI_MAX_PATH_NAME_SIZE bytes.
char * default_nameInputThe default name is used to initialize the Selection
text field. If it's an empty string or NULL string, the
Selection text field is set to the current directory.
char * filenameOutputWhen OK is selected from the FSB dialog, filename
is whatever was typed into the Selection field.
Usually, it is a complete path+name if the string is
automatically set by clicking on one of the files in
the filter list.

Note: An error message displays if no filename is
entered; even if there is a directory path in the
selection field.

It is caller's responsibility to allocate enough
memory for the filename string.
int * responseOutputUF_UI_OK: OK was selected
UF_UI_CANCEL: CANCEL was selected
Environment
Internal
3
发表于 2009-5-21 10:55:30 | 只看该作者
多谢版主! 只是如何将路径设置成“我的电脑”,想打开这一类的虚拟文件夹,为不是某个具体磁盘路径
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3D打印手板模型快速制作服务,在线报价下单!

QQ 咨询|手机版|联系我们|iCAx开思网  

GMT+8, 2024-12-27 17:47 , Processed in 0.023550 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

快速回复 返回顶部 返回列表