Scalabium Software

SMExport advertising
Knowledge for your independence'.
Home Delphi and C++Builder tips


#105: How can I refresh a desktop?

Yesterday I answered on this question in delphi programming mailing list. I want to post this answer as tip because I sure that this question can ask a lot of developers but to find an answer is not easy task.

So if you need refresh a desktop in run-time, you can execute a next procedure:

SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL);

This code will refresh a desktop image and re-read the icons for files with registered extentions.

PS: you can do a same if you press a right mouse button on desktop and select Update item.


Published: November 24, 2000

See also
 
SMReport
Viewer for TNEF-files (winmail.dat)
DBLoad
Paradox Viewer
Database Information Manager
Clarion Viewer
DBISAM Viewer
ABA Spreadsheet Convert
dBase Viewer
ABA Database Convert
 
 


Contact to webmaster

 

Borland Software Code Gear Scalabium Delphi tips

Copyright© 1998-2024, Scalabium Software. All rights reserved.
webmaster@scalabium.com

SMExport advertising