Modify the icon of the MFC program

1. In the resource folder of the project, find the default ico icon file of vs and remove it (you can also not remove the obsessive-compulsive disorder)
insert image description here
2. Right-click the project folder, click Add , select Resources® , select Icon , click Import , and add your own ico icon to the project
insert image description here

3. After the above operations, click the file with the suffix rc, and you will find the ico icon resource we added and the default ico resource left before (still delete it). You can right-click the file, select properties, and modify the ID of the file to the name we want
insert image description here
insert image description here
.

insert image description here

insert image description here

Guess you like

Origin blog.csdn.net/sanqiuai/article/details/124202330