当我使用IFileOperation并隐藏自己的进度时,如何取消或停止当前的复制? [英] How to Cancel or Stop Current copyings when i use IFileOperation and hide its own progress wnd?

查看:101
本文介绍了当我使用IFileOperation并隐藏自己的进度时,如何取消或停止当前的复制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们:

我使用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复制文件时,您可能需要
     尝试使用
GetAnyOperationsAborted
方法。

 About how to stop or cancel the current copying file when using IFileOperation, you may have     a try to use GetAnyOperationsAborted method.

此方法获取一个值,指出是否有任何文件 通过拨打
发起的操作
IFileOperation :: PerformOperations
是 在他们完成之前停止了。可以通过 停止操作。用户操作或系统静默。

This method gets a value that states whether any file   operations initiated by a call to IFileOperation::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 use SetOperationFlags function with   parameter FOF_SILENT.

希望这可以帮到你。

最好的问候,

May


这篇关于当我使用IFileOperation并隐藏自己的进度时,如何取消或停止当前的复制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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