简体   繁体   English

更改我的可执行文件图标

[英]Change my executable icon

I am new to changing default icons on c++ console applications. 我是在c ++控制台应用程序上更改默认图标的新手。 But recently, I have been wanting to know how it is accomplished. 但是最近,我一直想知道它是如何实现的。 I managed to save an .ico file and when I build my application in Release mode I open it and I see the new image show up when my window is running and then a tiny icon showing up in the top left hand of the screen, and seeing that made me very happy. 我设法保存了一个.ico文件,当我在“发布”模式下构建应用程序时,我打开了该文件,并在窗口运行时看到了新图像,然后在屏幕的左上角显示了一个小图标,看到那让我非常高兴。

在此处输入图片说明

在此处输入图片说明

But I wanted to know how can I change the image of my executable file so that it is consistent with my program? 但是我想知道如何更改可执行文件的映像,使其与程序一致?

From this... 由此...

在此处输入图片说明

To this... 为此...

在此处输入图片说明

Can anyone help me figure out what the steps are to change the default executable icon to the one I want? 谁能帮助我找出将默认可执行图标更改为所需图标的步骤? Many thanks in advanced! 非常感谢高级!

Add a new file to the existing projekt and select as file type 将新文件添加到现有项目中,然后选择作为文件类型
"Symbol (ico)" in the "Resource" category. “资源”类别中的“符号(ico)”。
Draw it, save it, compile again, finished. 绘制,保存,再次编译,完成。
Windows will automatically display the icon with the lowest ID (if any). Windows将自动显示ID最低的图标(如果有)。
If there is only one icon, it can be only that one... 如果只有一个图标,那么只能是一个...

edit: You should make different sizes (16x16, 32x32, 64x64 etc.). 编辑:您应该制作不同的尺寸(16x16、32x32、64x64等)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM