如何调用shell“文件复制对话框”在Win32中报告副本的进度? [英] How do I invoke the shell "file copy dialog" to report the progress of a copy in Win32?

查看:237
本文介绍了如何调用shell“文件复制对话框”在Win32中报告副本的进度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过调用Windows复制文件对话框来复制文件?



SHFileOperation



顺便说一句, SHFileOperation 有GUI界面吗?

是的,这是 /msdn.microsoft.com/en-us/library/bb762164.aspxrel =nofollow> SHFileOperation 函数专为。它接受 SHFILEOPSTRUCT 结构作为其唯一的参数,您可以使用它来指定所需的选项。



但是,在Windows Vista和更高版本中, a href =http://msdn.microsoft.com/en-us/library/bb775771.aspx =nofollow> IFileOperation 界面。


How can I copy files by invoking windows "copy files" dialog to do it?

SHFileOperation seems like a option, but it is inside our process.

By the way, does SHFileOperation have GUI interface? Is it exactly the same as the Windows copy dialog?

解决方案

Yes, this is what the SHFileOperation function is designed for. It accepts an SHFILEOPSTRUCT structure as its only parameter, which you can use to specify the options that you want.

However, it has been replaced in Windows Vista and later versions with the IFileOperation interface.

这篇关于如何调用shell“文件复制对话框”在Win32中报告副本的进度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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