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. Changing the exe icon

Changing the exe icon

Scheduled Pinned Locked Moved C / C++ / MFC
graphicstutorialquestion
3 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.
  • S Offline
    S Offline
    Stan the man
    wrote on last edited by
    #1

    Hi. I was wondering if someone could tell me how to change the icon of the exe for the program? Is there was a way I could just do a define to use the bitmap or icon I want so that I can change it anytime? Thanks in advance! Stan the man

    M H 2 Replies Last reply
    0
    • S Stan the man

      Hi. I was wondering if someone could tell me how to change the icon of the exe for the program? Is there was a way I could just do a define to use the bitmap or icon I want so that I can change it anytime? Thanks in advance! Stan the man

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Do you mean the icon shown in the Windows Explorer windows? If so, the system uses the icon resource with the lowest ID by default (e.g. 1). For the application while it's running, you can use the WM_SETICON message (CWnd::SetIcon() in MFC). Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      1 Reply Last reply
      0
      • S Stan the man

        Hi. I was wondering if someone could tell me how to change the icon of the exe for the program? Is there was a way I could just do a define to use the bitmap or icon I want so that I can change it anytime? Thanks in advance! Stan the man

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

        You can use of LoadIcon and then SetIcon?

        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