正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!
您需要 登录 才可以下载或查看,没有账号?立即注册
x
在OnEnd里添加代码,两种解决方案
方案1:
- #include "ifx.h"
- //Call to Windows used in the "OnEnd" function to refresh the desktop
- prototype Shell32.SHChangeNotify(LONG, LONG, POINTER, POINTER);
- // -- Add the following to the "OnEnd" function
- //Refresh the desktop to display icons (or remove if uninstall)
- SHChangeNotify(134217728, 0, NULL, NULL);
复制代码
方案2:
- SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_FLUSHNOWAIT,0,0);
复制代码
此类需求多见于文件关联之类的动作,文件关联后操作系统并不能马上将文件的图标刷新为关联程序的图标,需要手动刷一下 |