Desktop Shortcut Icon is different than Application Icon

419 Views Asked by At

I have created a Call Log Dialog and I have added an Icon to help make the application more noticeable to fellow coworkers.

My icon is in the .rc file as:

IDI_CABINET             ICON                    "cabinet.ico"

and I load the icon with:

m_hIcon = AfxGetApp()->LoadIcon(IDI_CABINET);

and set with:

SetIcon(m_hIcon, TRUE);

When I build a Release Version and find the the .exe file for my application the icon appears just as I want it; however, when I create a desktop shortcut the image defaults to some windows application icon. If I click on the shortcut it opens and runs the program without issue. Is there something else I need to declare inside the program to change the icon for shortcuts as well? This also does not correctly appear when the application is sent to the taskbar.

*Edit I am using Windows 7 in case that matters.

0

There are 0 best solutions below