Modification of the example to get an icon from a ressource file.