CFileDialog从网上打开文件 [英] CFileDialog to open file from web

查看:92
本文介绍了CFileDialog从网上打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用CFileDialog来获取要从用户打开的文件名.如果用户从Web文件夹中选择文件,则此对话框会将文件的本地副本下载到临时文件夹,然后返回到临时文件的路径.但是我需要原始路径并自己管理下载文件.要获取原始路径(URL地址)不是问题,我可以发送消息 CDM_GETFOLDERIDLIST,并获取具有原始路径的IDL.

但是我如何禁用打开文件的自动下载功能对话框到临时文件?

自动下载非常令人沮丧,因为如果用户要打开大文件,则将文件下载到临时文件夹会花费大量时间,并且应用程序似乎被冻结.我发现了标志 OFN_NOTESTFILECREATE,但是我不确定这是否正确,并且这个标志是否正确似乎不起作用.

感谢您的回答,
-拉科. /font>


对不起,我的英语.希望您能理解问题和答案.

Hello everybody,

I'm using CFileDialog to get file name to open from user. If user selects file from web folder, this dialog downloads a local copy of file to temporary folder and returns path to temporary file. But i need original path and manage download file myself. To get original path (url address) is not problem, i can send message CDM_GETFOLDERIDLIST, and i get IDL with original path.

But how i can disable automatic download of file by open file dialog to temporary file?

Automatic download is very frustating, because if user want open large file, download of file to temporary folder takes large time and application seems be frozen. I found flag OFN_NOTESTFILECREATE, but i'm not sure if this is correct flag, and if this flag is correct seems not work.

Thanks for answers,
- Laco.


Sorry for my english. I hope you understand questions and answers.

推荐答案



这篇关于CFileDialog从网上打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆