问题描述
伙计们:
我使用IFileOperationProgressSink定制我自己的Progressctrl,它运行良好。如何在没有其orignal进度窗口的情况下取消当前的复制(它被设置隐藏了)。$
谁能帮助我,我们将不胜感激!谢谢!
Hi,Guys:
I use IFileOperationProgressSink to custom My own Progressctrl,and it works well.howerver,how can i cancel current copyings without Its orignal progress window(it was hiden by Settings on purpose).
Who can help me will be appreciated! Thanks!
推荐答案
关于如何停止或取消当前使用IFileOperation复制文件时,您可能需要
尝试使用
方法。
About how to stop or cancel the current copying file when using IFileOperation, you may have a try to use GetAnyOperationsAborted method.
此方法获取一个值,指出是否有任何文件 通过拨打
发起的操作是 在他们完成之前停止了。可以通过 停止操作。用户操作或系统静默。
This method gets a value that states whether any file operations initiated by a call toIFileOperation::PerformOperations were stopped before they were complete. The operations could be stopped either by user action or silently by the system.
为了隐藏进度wnd ,您可能会尝试使用
SetOperationFlags 功能与 参数
FOF_SILENT 。
In order to hide progress wnd, you may have a try to useSetOperationFlags function with parameterFOF_SILENT.
希望这可以帮到你。
最好的问候,
May
这篇关于当我使用IFileOperation并隐藏自己的进度时,如何取消或停止当前的复制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!