首页 > 代码库 > 刷新系统桌面

刷新系统桌面

//刷新系统桌面
//方法1

uses ShlObj;
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, nil, nil);

--------------------------------------------------------------------------------
//方法2
SendMessage(FindWindow(‘Progman‘, ‘Program Manager‘), WM_COMMAND, $A065,0);
--------------------------------------------------------------------------------


来自为知笔记(Wiz)