Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to change icon appearing in taskbar in "grouped state" ?

How to change icon appearing in taskbar in "grouped state" ?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cagespear
    wrote on last edited by
    #1

    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

    D K 2 Replies Last reply
    0
    • C cagespear

      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

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      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

      C 1 Reply Last reply
      0
      • C cagespear

        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

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        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

        G 1 Reply Last reply
        0
        • D David Crow

          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

          C Offline
          C Offline
          cagespear
          wrote on last edited by
          #4

          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

          D 1 Reply Last reply
          0
          • C cagespear

            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

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            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

            C 1 Reply Last reply
            0
            • D David Crow

              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

              C Offline
              C Offline
              cagespear
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • K KarstenK

                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

                G Offline
                G Offline
                Graham Shanks
                wrote on last edited by
                #7

                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!

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups