delphi - How do I make the "show/hide desktop icons" setting take effect? -
the code below calls shgetsetsettings function hide desktop icons unchecked "show desktop icons" view menu.
i called shchangenotify(shcne_assocchanged, shcnf_flushnowait, nil, nil);
update desktop doesn't work?
var lpss: shellstate; begin lpss.data := high(cardinal); lpss.data2 := low(cardinal); shgetsetsettings(lpss,ssf_hideicons,true); shchangenotify(shcne_assocchanged, shcnf_flushnowait, nil, nil); end;
isa, refresh desktop can send f5 key progman
(program manager) window
postmessage(findwindow('progman', nil), wm_keydown, vk_f5, 3);
another alternative hide desktop icons
showwindow(findwindow('progman', nil),sw_hide); //hide icons desktop , refresh screen
to show again
showwindow(findwindow('progman', nil),sw_show); //show icons of desktop , refresh
Comments
Post a Comment