SFML community forums

Help => General => Topic started by: xzxvvxzx on February 05, 2013, 04:00:33 am

Title: [SOLVED] Icon on taskbar
Post by: xzxvvxzx on February 05, 2013, 04:00:33 am
I would like to know how to display specific icon on taskbar instead of the default one. I know that changing .exe icon is IDE specific. I managed to change .exe icon with resource file (.rc)

#ifndef _resource_rc
#define _resource_rc

MAINICON ICON "icon.ICO"

#endif

However it only changes .exe icon and icon displayed on taskbar remains the same.

I am using SFML 2.0 and Code::Blocks
Title: Re: Icon on taskbar
Post by: eXpl0it3r on February 05, 2013, 04:04:19 am
Afaik the icon in the taskbar and the icon on the top left window corner are the same and can be set by calling window.setIcon() (http://www.sfml-dev.org/documentation/2.0/classsf_1_1Window.php#a63af61e026fba08e3153fd013620bcc0).
Title: Re: Icon on taskbar
Post by: xzxvvxzx on February 05, 2013, 07:42:40 am
Thanks!