Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28446 Discussions

Icon not displayed correctly in Task Bar

Intel_C_Intel
Employee
435 Views
I am loading an icon using-

wc%hIcon = LoadIcon( hInstance, LOC(lpszIconName))


If I have a shortcut to my .exe then the icon is shown correctly but in Explorer and in the Task Bar, the icon is shown as a small black box with some white horizontal and vertical lines which is wrong.

Any ideas why this occurs?

Thanks,

David
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
435 Views
You should provide small icon (16x16) within your .ico file as well. If you don't, Windows will try to resize your big icon to 16x16, but my guess is that it fails due to some reason, possibly color depth (I always use 16 color icons, but I've heard about problems with 256- and full color images).
0 Kudos
Intel_C_Intel
Employee
435 Views
Thanks, that worked fine.
I had wondered about a 16x16 icon, but didnt realise that by clicking on the icon besode the list of devices I could create a new one with the same ID.

Thanks also for help on the translations.

David
0 Kudos
Reply