| |

VerySource

 Forgot password?
 Register
Search
Author: yngmei

Ask everyone a question, how to change the icon of the MFC program generated by vc?

[Copy link]

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-11 03:00:01
| Show all posts
SetIcon(AfxGetApp()->LoadIcon(ICO_ID/*icon ID*/), TRUE
I can change both here
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-7-12 18:30:01
| Show all posts
Direct modification of IDR_MAINFRAM does not seem to work, you must delete it, and then rebuild it
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-13 16:15:02
| Show all posts
Import the icon you want to use first
Then change the ID number of the AfxGetApp()->LoadIcon() function in the dialog class constructor to the imported ID number.
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-7-15 10:30:01
| Show all posts
Direct modification of IDR_MAINFRAM does not seem to work
Yes, but you need to modify the rc file randomly, otherwise it will not be res
Reply

Use magic Report

1

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-8-13 14:00:01
| Show all posts
Can't it
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list