积极答复者
不知道是不是Windows7 的Bug

问题
答案
-
It is good practice to examine the value of the fAnyOperationsAborted member of the SHFILEOPSTRUCT. SHFileOperation can return 0 for success if the user cancels the operation. If you do not check fAnyOperationsAborted as well as the return value, you cannot know that the function accomplished the full task you asked of it and you might proceed under incorrect assumptions.
MSDN说的很清楚,最好检查fAnyOperationsAborted,如果用户取消操作,SHFileOperation也会返回0。
LHL- 已标记为答案 lifestar2008 2010年8月16日 2:11
全部回复
-
用IFileOperation看看
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP -
It is good practice to examine the value of the fAnyOperationsAborted member of the SHFILEOPSTRUCT. SHFileOperation can return 0 for success if the user cancels the operation. If you do not check fAnyOperationsAborted as well as the return value, you cannot know that the function accomplished the full task you asked of it and you might proceed under incorrect assumptions.
MSDN说的很清楚,最好检查fAnyOperationsAborted,如果用户取消操作,SHFileOperation也会返回0。
LHL- 已标记为答案 lifestar2008 2010年8月16日 2:11
-
LHL:
我这的代码中写的是FALSE。谢谢你了,LHL。
- 已标记为答案 lifestar2008 2010年8月16日 2:11
- 取消答案标记 lifestar2008 2010年8月16日 2:11