 |
|
 |
this is very frustrating. what even i do, edit the .ico file (in vs2010 or another editor), change to a new .ico file in resource editor, etc. vs2010 always puts the default MFC icons back in the .ico file so my changes are irrelevant.
i've tried a clean build, i've tried everything i can think of but nothing works.
any ideas please?
thanks
|
|
|
|
 |
|
 |
FYI, i just deleted C:\Users\steve\AppData\Local\Microsoft\VisualStudio\10.0\ComponentModelCache and did a clean rebuild with a modified .ico file and as before vs2010 edits the .ico file and reinserts the default MFC icons
aaaarrrrrrrgggggggggggggggghhhhhhhhhhhhhhhhhhhhhhh!!!!!!!!!!!!!!!!!!!!!
another update: i made the new, modified .ico file read only so vs2010 couldn't edit it and cleaned the cache, cleaned the project and did a rebuild and still no luck; it insists on displaying the original MFC logo in my app. however, when i look at the .ico file in the resource editor now, i see my modified version, no MFC logos
OK, MY BAD
i was trying to change the logo on at the top left corner of my app (ribbon bar) and i thought that was in the .ico file but it isn't, that is main.bmp. so i simply edit that and i'm ok.
modified on Wednesday, July 6, 2011 12:46 AM
|
|
|
|
 |
|
 |
Does anyone know a way to add #if/#else way to load different default icon (shows on Explorer) for different versions?
Much appreciated.
Super
|
|
|
|
 |
|
 |
I got 2 icons for my app.One is app icon, the other is a icon for shortcut.
The app icon is the 1st icon and it change correctly. The problem is 2nd icon for the shortcut can not be changed until reboot (some machines did not changed even reboot). I have try these 2 methods that mentions on the article.
Is there any solution I can try now?
|
|
|
|
 |
|
 |
Hi, i want to load Icons from Files
.ico files or maybe exe or dll ..
is there any way to do that ?
|
|
|
|
 |
|
 |
if i have a application with multiple documents and i need a different icon to attach to every Window, how do I do that.
Plz can anyone help me with this
|
|
|
|
 |
|
 |
mn vgg
nhh
|
|
|
|
 |
|
 |
After you've changed the resource file as per this artical, use 'Build | Clean' from the build menu to remove all the old build information then do a build and the old icon is gone for good
|
|
|
|
 |
|
 |
Just delete the old MFC ICON and add a new one then name the newone to tha IDR_MAINFRAME !
in the aboutdialog resource just click in the visible check box so it flushes the RC file and **whaila** you have a icon there to!
|
|
|
|
 |
|
 |
One frustrating thing I have found recently is even though I have done all the usual things to replace the icon and when I open up the exe resources my icons are the only ones there, 'File manager' and when I run the app. still show the MFC default icons for some strange reason. Where does windows keep this info?
|
|
|
|
 |
|
 |
Well Method 2 desribes this scenario. The old icon is actually stored in the exe file itself. Anyway you can overcome this problem but selecting 'clean' from the build menu and rebuild all.
|
|
|
|
 |
|
 |
I followed your advice to "clean" and then "rebuild all" and I still have the same problem. I created a typical MFC app (project name: test) and modified the icon resource. The modified icon comes out fine on the "About" dialog but the old MFC icon shows up on the upper left corner of my running app as well as in Windows Explorer when I view the /res/test.ico or test.exe. If I right-click on test.exe and select "properties" the modified icon correctly shows up on both the release and debug versions
|
|
|
|
 |
|
 |
Sounds to me that you changed the Icon bij changing the iconbitmap manualy. But you only changed the 32x32 Icon, but didn't change the 16x16 Icon of IDR_MAINFRAME.
This 16x16 Icon (when present) is shown in the upper left corner. If it's not available then windows calculates it from the 32x32 Icon.
|
|
|
|
 |
|
 |
Just a note of thanks. I had changed my icon and it was showing up correctly in everything except the file manager. As soon as I read this note I kicked myself and did the change to the 16x16 icon.
I now have the correct icon showing up.
May thanks.
|
|
|
|
 |
|
 |
I want to load a individual icon from file.
Is this also possible in any way?
Background:
The user should be able to change application-icon
by ini-Settin
|
|
|
|
 |
|
 |
I don't think it is possible the way you want it. Actually what you can do is extract your favourite icons to indivdual files (programs are available for this pupose). Then you can use member functions (or APIs) to load your favourite icon at run time
|
|
|
|
 |
|
 |
It works like this in OnCreate() of CMainFrame:
//Applikations-Icon
cfg.GetRegistry()->GetVariable( CFG_VAR_ICON, buf);
this->SetIcon((HICON) LoadImage(0, buf,
IMAGE_ICON, SM_CXICON, SM_CYICON, LR_LOADFROMFILE ), TRUE);
Same code does otherwise not work on CView
|
|
|
|
 |
|
 |
Hi...nice job. Keep it up. Next time write on something that is really TOUGH to do.
Bye
Ati
|
|
|
|
 |