[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4949
  • Last Modified:

How to change icon for my application

Hi, I am currently developing an application on visual studio 6.0, and i wish to change the MFC icon on my application header. Anyone can help? Thank you.
0
mwcmp
Asked:
mwcmp
1 Solution
 
AlexFMCommented:
Open Resource View, Icon, IDR_MAINFRAME. Change icon in the editor (you can do this manually or paste image from another icon/bitmap). Don't forget to change two icon sizes: 16*16 and 32*32. Icon size is selected in the Device combo.
0
 
raed_hasanCommented:
Open the icon resource for editing by double clicking.  Then notice the
control just above the editing grid that lets you switch between editing
the large icon and editing the small one.
0
 
mwcmpAuthor Commented:
Yes, but that is not what i want. I did managed to change the icon, but when I open the application window, on the top header, it still displays the MFC icon.

So that would mean my .exe icon has been changed, but not the top header icon found on the application window.

So anyone can help on that?
0
 
AlexFMCommented:
What is top header?
0
 
Jaime OlivaresCommented:
I is a common error. As mentioned by AlexFM you have to pay attention to this:
When you design an icon, this resource has many "versions": 16x16, 32x32, 16 colors, 256 colors, etc.
Notice when you enter to Icon Editor in Visual C++, there is a toolbar option called: "Device", normally showing a combobox with  "Standard (32x32)", now select the next combobox option ("Small (16x16)"). You maybe will see the old-MFC icon again. Change it and recompile.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now