在OnEnd裡添加代碼,兩種解決方案
群友kevin的解決方案
#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);
群友沒你不行的解決方案
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_FLUSHNOWAIT,0,0);
此類需求多見于檔案關聯之類的動作,檔案關聯後作業系統并不能馬上将檔案的圖示重新整理為關聯程式的圖示,需要手動刷一下