How to change icon appearing in taskbar in "grouped state" ?
-
Hi, I have an MFC app for which icon is displayed normally in all conditions except this - - When I open 2 instances of the app and Windows XP groups them into 1 single entity in taskbar, the icon displayed is something other than my app original icon. Any ideas regarding this ? (I'm already doing a SetIcon btw at my side) Regards Cage
-
Hi, I have an MFC app for which icon is displayed normally in all conditions except this - - When I open 2 instances of the app and Windows XP groups them into 1 single entity in taskbar, the icon displayed is something other than my app original icon. Any ideas regarding this ? (I'm already doing a SetIcon btw at my side) Regards Cage
Have you changed all resolutions of your icon? In one .ico file can be several sizes (16x16, 32x32, 48x48).
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Hi, I have an MFC app for which icon is displayed normally in all conditions except this - - When I open 2 instances of the app and Windows XP groups them into 1 single entity in taskbar, the icon displayed is something other than my app original icon. Any ideas regarding this ? (I'm already doing a SetIcon btw at my side) Regards Cage
-
Have you changed all resolutions of your icon? In one .ico file can be several sizes (16x16, 32x32, 48x48).
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Okay. So, you mean to say I should have 3 sizes images embedded into the ico file ? The way I created the icon was to use create a 32 * 32 size icon. Btw - how can we see for an ico file - how many sizes does it support ? Thanks for the help, Cage
cagespear wrote:
Btw - how can we see for an ico file - how many sizes does it support ?
I use Visual Studio's built-in icon editor.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
cagespear wrote:
Btw - how can we see for an ico file - how many sizes does it support ?
I use Visual Studio's built-in icon editor.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
Ok. so I just added 16 * 16 as well as 48 * 48 image sizes to my icon. I can see all 3 sizes - 16, 32 and 48 in my visual studio icon editor. But my problem still continues ... As I told you earlier - I can see the icon fine in the titlebar, in the icon which shows up when you do an alt+tab but I see the default icon(hand with videocamera) rather than my app icon in taskbar properly when I have more than 1 instances open for my app and windows xp has "grouped" them into 1 with its taskbar setting. 1 part which I missed earlier was even in the xplorer view, the icon for my app is that default one instead of original app icon. Thanks for your time, Regards Amit
-
The app icon is sometimes tricky. Best is to give it the lowest icon ID in the resource.h. And as some rightly mentioned support all possible sizes and bit depths in the icon.
Greetings from Germany
KarstenK wrote:
The app icon is sometimes tricky. Best is to give it the lowest icon ID in the resource.h
I second that. I had a similar problem which was solved by doing this
Graham Librarians rule, Ook!