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. Program-Icon

Program-Icon

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++
5 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.
  • K Offline
    K Offline
    klawipo
    wrote on last edited by
    #1

    How do I manage to use an own Icon for my executable (no MFC used yet) so that the usual Windows-Icon for exes is replaced by my Icon ?

    L 1 Reply Last reply
    0
    • K klawipo

      How do I manage to use an own Icon for my executable (no MFC used yet) so that the usual Windows-Icon for exes is replaced by my Icon ?

      L Offline
      L Offline
      lucy 0
      wrote on last edited by
      #2

      hmm, I think this question is answered several times in this forum, it might even be in the Q&A section. Anyway, to change this icon, modify the Icon whose ID is IDR_MAINFRAME, remember to change both of them, the standard one (32x32) and the small one (16x16).

      K 1 Reply Last reply
      0
      • L lucy 0

        hmm, I think this question is answered several times in this forum, it might even be in the Q&A section. Anyway, to change this icon, modify the Icon whose ID is IDR_MAINFRAME, remember to change both of them, the standard one (32x32) and the small one (16x16).

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

        I know that procedure when I have a for example dialog-based app using MFC. But I dont use MFC and aint got any resources yet. What do I have to do ? :confused:

        J 1 Reply Last reply
        0
        • K klawipo

          I know that procedure when I have a for example dialog-based app using MFC. But I dont use MFC and aint got any resources yet. What do I have to do ? :confused:

          J Offline
          J Offline
          Joel Holdsworth
          wrote on last edited by
          #4

          The resources are crucial - if you don't have them you can't have icons. When explorer try to flash an icon up, it just uses the first icon it comes across in the resource sector. Usually we arrange things so that if you have several icons, the main one is the first one uncovered. There really is no way around you making an .rc, and doing it that way - not that I nkow of anyway. I hope that helps. With time we live, with money we spend! Joel Holdsworth

          K 1 Reply Last reply
          0
          • J Joel Holdsworth

            The resources are crucial - if you don't have them you can't have icons. When explorer try to flash an icon up, it just uses the first icon it comes across in the resource sector. Usually we arrange things so that if you have several icons, the main one is the first one uncovered. There really is no way around you making an .rc, and doing it that way - not that I nkow of anyway. I hope that helps. With time we live, with money we spend! Joel Holdsworth

            K Offline
            K Offline
            klawipo
            wrote on last edited by
            #5

            It helped, got my Icon now. Thanks a lot to both of 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