-
December 31st, 2007, 01:57 PM
#1
Taskbar icon changing
This is a strange one...
I changed my application's icon from the default MFC icon. I didn't like the icon I made, so I changed it yet again. I made sure to change all references to the old icon name *AND* I deleted the old icon from my project folder. The new icon gets displayed properly until I open two windows of my application, in which case the icon in the taskbar changes to the old icon, which doesn't even exist anymore. Note that this only occurs when I run the application from my Debug folder.
-
December 31st, 2007, 02:12 PM
#2
Re: Taskbar icon changing
Originally Posted by Paul Fake
This is a strange one...
I changed my application's icon from the default MFC icon. I didn't like the icon I made, so I changed it yet again. I made sure to change all references to the old icon name *AND* I deleted the old icon from my project folder. The new icon gets displayed properly until I open two windows of my application, in which case the icon in the taskbar changes to the old icon, which doesn't even exist anymore. Note that this only occurs when I run the application from my Debug folder.
Any MFC icon can be solve of the problem. You may save it again in the resource directory. Other way is:
Code:
HICON hIconNew = AfxGetApp()->LoadIcon(ID_ANY_ICON); // Resource inside
-
January 2nd, 2008, 09:57 AM
#3
Re: Taskbar icon changing
Make sure your new icon is the FIRST icon in your resources. So give it resource ID 1.
-
January 2nd, 2008, 03:13 PM
#4
Re: Taskbar icon changing
Originally Posted by Marc G
Make sure your new icon is the FIRST icon in your resources. So give it resource ID 1.
Yeah... Also can say so.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|