如何调用 shell 的“文件复制对话框”报告 Win32 中的副本进度?
如何通过调用Windows“复制文件”对话框来复制文件?
SHFileOperation
看起来像是一个选项,但它位于我们的进程内部。
顺便问一下,SHFileOperation
有 GUI 界面吗?和Windows的复制对话框一模一样吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,这就是
SHFileOperation
函数是专为.它接受SHFILEOPSTRUCT
结构 作为其唯一的参数,您可以使用它来指定所需的选项。但是,它在 Windows Vista 及更高版本中已被替换为
IFileOperation< /代码>接口
。
Yes, this is what the
SHFileOperation
function is designed for. It accepts anSHFILEOPSTRUCT
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.是的。您可以 pinvoke
SHFileOperation
,如下例所示:Yes. You would pinvoke
SHFileOperation
as in the example here:是的,
SHFileOperation
< /a> 显示相应文件操作的默认 shell 对话框,当您调用它时,您可以对此进行一定程度的控制。Yes,
SHFileOperation
displays the default shell dialogs for the corresponding file operations, you have a degree of control over this when you call it.