- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am loading an icon using-
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page