Search This Blog

Thursday, January 3, 2013

How to update the icon changes when installing?

BMP files can be opened using MS Paint or Windows photo viewer, or with some other programs.
But Icon of that file, is the default program that associated with that extension. you can also change the default program to open files.

Even you can create your own file extension documents for your application. To update the icon of the files and to refresh the windows after default program changed or your application installation can be done using the following code.


SHChangeNotify(SHCNE_ASSOCCHANGED,0,NULL,NULL);

No comments:

Post a Comment