MFC-替换默认应用程序图标 [英] MFC - Replacing default application icon
本文介绍了MFC-替换默认应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个MFC对话框应用程序.我想替换应用程序exe图标.
I have a MFC Dialog Application. I would like to replace the application exe icon.
- 我打开默认的MFC图标,例如.使用Axialis IconWorkshop在res文件夹中找到app.ico.
- 替换图标中的所有图像.
- 将其保存到appA.ico.
- 然后将图标IDR_MAINFRAME的Filename属性更改为res \ appA.ico.
- Visual Studio图标编辑器显示正确的图像.
但是当我构建应用程序时,与app.exe关联的图标仍显示MFC默认图标.
But when I build the application, the icon associated to the app.exe still show MFC default icon.
出了什么问题?
推荐答案
在这些情况下,Visual Studio设计器会出现一些问题(或者是设计使然,但却难以理解).最好编辑.rc代码文件并在那里更改图标文件名.
In these cases the Visual Studio designer is a little buggy (or, otherwise, by design but incomprehensible). It's best to edit the .rc code file and change the icon filename there.
这篇关于MFC-替换默认应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文