CFileDialog

http://www.codeguru.com/forum/showthread.php?t=190010

 

当你用CFileDialog选择一个文件之后,你再对文件夹命名的话,那就会提示你文件夹被占用.

 

众里寻她千百度,终于在一个几角旮旯里面,找到问题的正解了.

 

不过说实话,CFileDialog的这种设计确实够变态的.

 

很有意思的是,文章中说道Even the famous IM tool, ICQ consists this problem too.

哈哈.

 

下面引用大牛的点睛之语:

The problem exists. It's because the folder in which you've selected some file becomes the current folder for your application. If you'd rename or move or delete this folder your application current folder would be invalid. You may solve this problem by saving your application current folder before the dalog shows and restore it after the dialog destoyed.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值