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. Icon problem [modified]

Icon problem [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelplearningworkspace
10 Posts 7 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.
  • A Offline
    A Offline
    Anu_Bala
    wrote on last edited by
    #1

    Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006

    H M S N E 5 Replies Last reply
    0
    • A Anu_Bala

      Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Do you use SetIcon_**


      **_

      whitesky


      A 1 Reply Last reply
      0
      • A Anu_Bala

        Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Sounds like you didn't change the 16x16 icon, so you're seeing the AppWizard-generated default.

        --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

        1 Reply Last reply
        0
        • H Hamid Taebi

          Do you use SetIcon_**


          **_

          whitesky


          A Offline
          A Offline
          Anu_Bala
          wrote on last edited by
          #4

          Till now i wont use SetIcon but the taskbar shows right icon,then now why it does not shows the new one.where the application takes the old icon.because i checked in all files there is no older icon.then how its possible?Pls clear my doubts.

          H _ 2 Replies Last reply
          0
          • A Anu_Bala

            Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006

            S Offline
            S Offline
            Sarath C
            wrote on last edited by
            #5

            have u changed both icons i.e 16x16 and 32x32 it seems that u have changed only 32x32 icon pls check it. but u can see if u r viewing the file list as icons (not details view) SaRath
            "D on't blindly follow rules you read somewhere without verifying that it makes sense for your situation!"

            A 1 Reply Last reply
            0
            • A Anu_Bala

              Till now i wont use SetIcon but the taskbar shows right icon,then now why it does not shows the new one.where the application takes the old icon.because i checked in all files there is no older icon.then how its possible?Pls clear my doubts.

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              Please see Michael Dunn answer and my guess 16x16 icon_**


              **_

              whitesky


              1 Reply Last reply
              0
              • A Anu_Bala

                Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006

                N Offline
                N Offline
                NiceNaidu fo
                wrote on last edited by
                #7

                1.Copy the Icon,which u want to assign to res folder of u r application.Follow these steps 2.if u r using VC6 ,In the project click on File->Open,then change the Open As option to Text and open the .rc file of u r application. if u r using Vc7 , right click on .rc file and open as Text file 3.Replace the IDR_MAINFRAME ICON DISCARDABLE "res\\OldIcon.ico" with IDR_MAINFRAME ICON DISCARDABLE "res\\NewIcon.ico" I have tested this. Here it is working fine. Appu.. "If you judge people, you have no time to love them."

                1 Reply Last reply
                0
                • A Anu_Bala

                  Till now i wont use SetIcon but the taskbar shows right icon,then now why it does not shows the new one.where the application takes the old icon.because i checked in all files there is no older icon.then how its possible?Pls clear my doubts.

                  _ Offline
                  _ Offline
                  _anil_
                  wrote on last edited by
                  #8

                  change both be 32x32 and 16x16 icon. in task bar 16x16 icon is displayed. see your application exe in windows explorer both in Large icon setting and Small icon setting :-) Regards Anil

                  1 Reply Last reply
                  0
                  • S Sarath C

                    have u changed both icons i.e 16x16 and 32x32 it seems that u have changed only 32x32 icon pls check it. but u can see if u r viewing the file list as icons (not details view) SaRath
                    "D on't blindly follow rules you read somewhere without verifying that it makes sense for your situation!"

                    A Offline
                    A Offline
                    Anu_Bala
                    wrote on last edited by
                    #9

                    Yes i changed 16x16 icon.now its working.Thanks a lot.

                    1 Reply Last reply
                    0
                    • A Anu_Bala

                      Hi, I want to change the icon of my application,so, i changed it in resource file and the exe created with new Icon itself.But my problem,after running the EXE, the system taskbar which shows the icon and application name...IN THAT THE ICON IS OLDER ONE.IT DOES NOT SHOW THE NEW ICON. I dont know wat to do.The res file and ICON in the Workspace,all shows the new Icon only.Even my EXE in Debug file also shows new Icon.But in system taskbar shows the older one. -- modified at 7:53 Wednesday 31st May, 2006

                      E Offline
                      E Offline
                      echozeng
                      wrote on last edited by
                      #10

                      Have you changed the function's parameter ,for example ,if you want show the new icon which ID is IDR_NEW on the dialog, you can modify the LoadIcon function . CTestIconDlg::CTestIconDlg(CWnd* pParent /*=NULL*/) : CDialog(CTestIconDlg::IDD, pParent) { //{{AFX_DATA_INIT(CTestIconDlg) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 // modify this sentense m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); m_hIcon = AfxGetApp()->LoadIcon(IDR_NEW); } echozeng ----> nose nose i love you

                      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