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 kill the MFC icon

How to kill the MFC icon

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiotutorialquestionlearning
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.
  • N Offline
    N Offline
    nadiric
    wrote on last edited by
    #1

    I've got a standard MFC MDI app, and want to change the "MFC" icon to my own. In resource view, I've tried editing the icon (in VS) changing what file it points to, even deleting the "MFC" icon file - all make it look right in the resource view, but run the app and the "MFC" icon is still there. Is this called out explicitly in code somewhere? Thanks

    T D 2 Replies Last reply
    0
    • N nadiric

      I've got a standard MFC MDI app, and want to change the "MFC" icon to my own. In resource view, I've tried editing the icon (in VS) changing what file it points to, even deleting the "MFC" icon file - all make it look right in the resource view, but run the app and the "MFC" icon is still there. Is this called out explicitly in code somewhere? Thanks

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      have you changed all the devices in the icon ? a .ico file have several images of different sizes/resolutions, so if you don't change them all, you'll get strange behaviors .... ;)


      TOXCCT >>> GEII power

      [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

      N 1 Reply Last reply
      0
      • T toxcct

        have you changed all the devices in the icon ? a .ico file have several images of different sizes/resolutions, so if you don't change them all, you'll get strange behaviors .... ;)


        TOXCCT >>> GEII power

        [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

        N Offline
        N Offline
        nadiric
        wrote on last edited by
        #3

        I totally deleted the IDR_MAINFRAME resource and icon file on disk. I then made a new icon by importing a .bmp... clean and rebuild... still the "MFC" icon (I think it's giving me the finger). It must be defined somewhere else or cached or something?

        C 1 Reply Last reply
        0
        • N nadiric

          I totally deleted the IDR_MAINFRAME resource and icon file on disk. I then made a new icon by importing a .bmp... clean and rebuild... still the "MFC" icon (I think it's giving me the finger). It must be defined somewhere else or cached or something?

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #4

          i think Explorer caches icons. at least, i've had the same problem you describe - the icon doesn't always update in Explorer after i've changed it in the EXE. i'm not sure how to get it to recognize the new icon. maybe open a new Explorer window ?

          image processing | blogging

          N 1 Reply Last reply
          0
          • C Chris Losinger

            i think Explorer caches icons. at least, i've had the same problem you describe - the icon doesn't always update in Explorer after i've changed it in the EXE. i'm not sure how to get it to recognize the new icon. maybe open a new Explorer window ?

            image processing | blogging

            N Offline
            N Offline
            nadiric
            wrote on last edited by
            #5

            I'm not as concerned about the icon displayed in explorer as much as the one in the upper left corner of the main window of my app...

            C 1 Reply Last reply
            0
            • N nadiric

              I've got a standard MFC MDI app, and want to change the "MFC" icon to my own. In resource view, I've tried editing the icon (in VS) changing what file it points to, even deleting the "MFC" icon file - all make it look right in the resource view, but run the app and the "MFC" icon is still there. Is this called out explicitly in code somewhere? Thanks

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

              Did you also delete the project's .res file? In any case, doing a rebuild all should have accounted for the missing/changed .ico file.


              "Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

              "Judge not by the eye but by the heart." - Native American Proverb

              1 Reply Last reply
              0
              • N nadiric

                I'm not as concerned about the icon displayed in explorer as much as the one in the upper left corner of the main window of my app...

                C Offline
                C Offline
                Chris Losinger
                wrote on last edited by
                #7

                the desktop is a part of Explorer.exe, too.

                image processing | blogging

                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