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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Default document icon

Default document icon

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • J Offline
    J Offline
    Jose Luis Sogorb
    wrote on last edited by
    #1

    I've made an application and I cannot change the icon created when the program saves a file. I have edited the icon (IDR_...TYPE) in the resources, change it and recompiled it, but the program always creates the default doc icon. What could be the problem?

    S L 2 Replies Last reply
    0
    • J Jose Luis Sogorb

      I've made an application and I cannot change the icon created when the program saves a file. I have edited the icon (IDR_...TYPE) in the resources, change it and recompiled it, but the program always creates the default doc icon. What could be the problem?

      S Offline
      S Offline
      Steve Chou
      wrote on last edited by
      #2

      I think you not only have to edit the resources, but also you need to define and initialize in the "OnDraw" function.

      1 Reply Last reply
      0
      • J Jose Luis Sogorb

        I've made an application and I cannot change the icon created when the program saves a file. I have edited the icon (IDR_...TYPE) in the resources, change it and recompiled it, but the program always creates the default doc icon. What could be the problem?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Do you mean the icon seen from Explorer, or when the DOC is open in the App? 1. From Explorer - You have to create an association between your App and the file type 2. In your App - Just create a new icon, and name it whatever the icon file is named in your App/Res directory. Overwrite that icon with the new one, and it will display properly.

        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