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. Notify icon problem?

Notify icon problem?

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++questionannouncement
12 Posts 3 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.
  • O Offline
    O Offline
    Owner drawn
    wrote on last edited by
    #1

    I have a notify icon. The standard MFC icon for VS2003.Net . But in the notify icon area of the taskbar it looks real dirty(all squished out). X| But on the dialog control menu it looks real nice. I tried setting the version but still it's like that. Then I tried loading it through LoadImage. But now it looks fine but the 3D look is gone. Now MFC is written in Red(I am talking about the icon). :doh: What's wrong?:~ Can somebody help me!

    Jesus Lives Forever - Amen:rose:

    --Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:

    K 1 Reply Last reply
    0
    • O Owner drawn

      I have a notify icon. The standard MFC icon for VS2003.Net . But in the notify icon area of the taskbar it looks real dirty(all squished out). X| But on the dialog control menu it looks real nice. I tried setting the version but still it's like that. Then I tried loading it through LoadImage. But now it looks fine but the 3D look is gone. Now MFC is written in Red(I am talking about the icon). :doh: What's wrong?:~ Can somebody help me!

      Jesus Lives Forever - Amen:rose:

      --Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:

      K Offline
      K Offline
      khan
      wrote on last edited by
      #2

      I think the problem is because you are setting a 32x32 icon. You can try creating a new icon resource with dimensions 16x16. And use LoadIcon(...) to load it. That should do it. this is this.

      O 1 Reply Last reply
      0
      • K khan

        I think the problem is because you are setting a 32x32 icon. You can try creating a new icon resource with dimensions 16x16. And use LoadIcon(...) to load it. That should do it. this is this.

        O Offline
        O Offline
        Owner drawn
        wrote on last edited by
        #3

        Yeah buddy I thought about that. That's why I used LoadImage(...). I have loaded it with dimensions SM_CXSMICON, and SM_CYSMICON. Yeah after that it displays MFC in red. It looks fine but I wanted the other one.

        Jesus Lives Forever - Amen:rose:

        --Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:

        K 1 Reply Last reply
        0
        • O Owner drawn

          Yeah buddy I thought about that. That's why I used LoadImage(...). I have loaded it with dimensions SM_CXSMICON, and SM_CYSMICON. Yeah after that it displays MFC in red. It looks fine but I wanted the other one.

          Jesus Lives Forever - Amen:rose:

          --Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:

          K Offline
          K Offline
          khan
          wrote on last edited by
          #4

          Owner drawn wrote:

          with dimensions CX_CXSMICON, and CX_CYSMICON

          You must mean: SM_CXICON and SM_CYICON.

          Owner drawn wrote:

          but I wanted the other one

          I am not sure what you mean by that. Anyway here is a standard way: HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1); this is this.

          O 1 Reply Last reply
          0
          • K khan

            Owner drawn wrote:

            with dimensions CX_CXSMICON, and CX_CYSMICON

            You must mean: SM_CXICON and SM_CYICON.

            Owner drawn wrote:

            but I wanted the other one

            I am not sure what you mean by that. Anyway here is a standard way: HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1); this is this.

            O Offline
            O Offline
            Owner drawn
            wrote on last edited by
            #5

            khan++ wrote:

            You must mean: SM_CXICON and SM_CYICON.

            Yeah.

            khan++ wrote:

            I am not sure what you mean by that.

            If you have created a dialog based app in vs2003.net then you will know. I wanted the Icon that gets displayed for the control menu of a dialog. But it appears rather odd.

            khan++ wrote:

            HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1);

            This returns a 32x32 icon.

            Jesus Lives Forever - Amen:rose:

            --Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:

            K G 2 Replies Last reply
            0
            • O Owner drawn

              khan++ wrote:

              You must mean: SM_CXICON and SM_CYICON.

              Yeah.

              khan++ wrote:

              I am not sure what you mean by that.

              If you have created a dialog based app in vs2003.net then you will know. I wanted the Icon that gets displayed for the control menu of a dialog. But it appears rather odd.

              khan++ wrote:

              HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1);

              This returns a 32x32 icon.

              Jesus Lives Forever - Amen:rose:

              --Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:

              K Offline
              K Offline
              khan
              wrote on last edited by
              #6

              I have never loaded a multi-icon icon (not sure about the term). That is: an icon which contains multiple sized icons, like: 16x16x4, 16x16x8, 32x32x4 ... (width x height x bits/pixel) within one .ICO file. You can do a search on it. As I said in my first reply that you can create a new 16x16 icon resource, and try loading that one. this is this.

              1 Reply Last reply
              0
              • O Owner drawn

                khan++ wrote:

                You must mean: SM_CXICON and SM_CYICON.

                Yeah.

                khan++ wrote:

                I am not sure what you mean by that.

                If you have created a dialog based app in vs2003.net then you will know. I wanted the Icon that gets displayed for the control menu of a dialog. But it appears rather odd.

                khan++ wrote:

                HICON hi = AfxGetApp()->LoadIcon(IDI_ICON1);

                This returns a 32x32 icon.

                Jesus Lives Forever - Amen:rose:

                --Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:

                G Offline
                G Offline
                Great ATuin
                wrote on last edited by
                #7

                tray icons are supposed to have a resolution of 16x16 pixels. if you're loading a bigger one windows will shrink it and you'll get some odd artifacts. so if you want it to be displayed like in your resource editor you need to make it 16x16. saludos

                O 1 Reply Last reply
                0
                • G Great ATuin

                  tray icons are supposed to have a resolution of 16x16 pixels. if you're loading a bigger one windows will shrink it and you'll get some odd artifacts. so if you want it to be displayed like in your resource editor you need to make it 16x16. saludos

                  O Offline
                  O Offline
                  Owner drawn
                  wrote on last edited by
                  #8

                  Yeah I know that. Thanks... But I have loaded it using LoadImage(...) so I think resolution should not be a problem here. NOTIFYICONDATA talks of version. I am wondering whether this has got something to do with it.

                  Jesus Lives Forever - Amen:rose:

                  --Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:

                  G 1 Reply Last reply
                  0
                  • O Owner drawn

                    Yeah I know that. Thanks... But I have loaded it using LoadImage(...) so I think resolution should not be a problem here. NOTIFYICONDATA talks of version. I am wondering whether this has got something to do with it.

                    Jesus Lives Forever - Amen:rose:

                    --Owner drawn:rose: --An eye for an eye makes the whole world blind. --Jesus is Lord:rose:

                    G Offline
                    G Offline
                    Great ATuin
                    wrote on last edited by
                    #9

                    did you consider that in windows 2000 and former versions, tray icons are only displayed with 16 colors ? (don't mix up with 16 bit colors - cause here you only have 4 Bit which on top of that are pretended by windows)

                    O 1 Reply Last reply
                    0
                    • G Great ATuin

                      did you consider that in windows 2000 and former versions, tray icons are only displayed with 16 colors ? (don't mix up with 16 bit colors - cause here you only have 4 Bit which on top of that are pretended by windows)

                      O Offline
                      O Offline
                      Owner drawn
                      wrote on last edited by
                      #10

                      Then what about the Network icon, Yahoo messenger icon, antivirus icon etc. They all are definitely above 16 colors. :doh:

                      Jesus Lives Forever - Amen:rose:

                      --Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:

                      G 1 Reply Last reply
                      0
                      • O Owner drawn

                        Then what about the Network icon, Yahoo messenger icon, antivirus icon etc. They all are definitely above 16 colors. :doh:

                        Jesus Lives Forever - Amen:rose:

                        --Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:

                        G Offline
                        G Offline
                        Great ATuin
                        wrote on last edited by
                        #11

                        if you have windows xp, then yes, they have more then 16 colors. take a closer look to them - in windows 2000 they all use the same bunch of colors, namley 16. again, only tray icons are affected. icons in the taskbar, quick launch icons, icons in the upper left corner of your app or just the icons on your desktop - they all can use far more colors.

                        O 1 Reply Last reply
                        0
                        • G Great ATuin

                          if you have windows xp, then yes, they have more then 16 colors. take a closer look to them - in windows 2000 they all use the same bunch of colors, namley 16. again, only tray icons are affected. icons in the taskbar, quick launch icons, icons in the upper left corner of your app or just the icons on your desktop - they all can use far more colors.

                          O Offline
                          O Offline
                          Owner drawn
                          wrote on last edited by
                          #12

                          Aha gotcha. Great buddy. Thanks for your time.

                          Jesus Lives Forever - Amen:rose:

                          --Owner drawn:rose: --An eye for an eye makes the whole world blind. --If you find my post helpful then do rate it. --Jesus is Lord:rose:

                          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