How to add an oversized icon to a program (EXE large size icon)

Source: Internet
Author: User

Write your own program, if the replacement of the icon, compiled, large icon display will find that the icon does not follow the amplification.

Then the problem comes, the change of the icon effect is different, it is obvious that the icon has problems.

With Exescope Open vs2013 compiled MFC dialog box program can see the following figure:


There are more than one icon, and after we replace the icon, compile, open the discovery there is only one icon, so you can determine the problem is indeed an ICO icon.

In QQ group to ask other friends, have friends hint ico icon file can contain many groups of icons, can be a collection.

Knowing this is important, you just need to recreate an ICO icon.

Download and install IconWorkshop software

Open a picture and click here, as shown below:


Then set the following


Once set, click OK and then ctrl+s save so that the ICO icon collection is made.

Then use this icon to replace, recompile, refresh the System icon cache, and then change the icon zoom, you can see the effect.


The "Force refresh icon cache. Bat" reads as follows:

REM Shutdown Windows Shell Explorer taskkill/f/im explorer.exe rem cleanup System icon cache database Attrib-h-s-r "%userprofile%\appdata\local\iconca Che.db "del/f"%userprofile%\appdata\local\iconcache.db "attrib/s/d-h-s-r"%userprofile%\appdata\local\microsoft\ windows\explorer\* "del/f"%userprofile%\appdata\local\microsoft\windows\explorer\thumbcache_32.db "del/f"% Userprofile%\appdata\local\microsoft\windows\explorer\thumbcache_96.db "del/f"%userprofile%\AppData\Local\ Microsoft\windows\explorer\thumbcache_102.db "del/f"%userprofile%\appdata\local\microsoft\windows\explorer\ Thumbcache_256.db "del/f"%userprofile%\appdata\local\microsoft\windows\explorer\thumbcache_1024.db "del/f"% Userprofile%\appdata\local\microsoft\windows\explorer\thumbcache_idx.db "del/f"%userprofile%\AppData\Local\ Microsoft\windows\explorer\thumbcache_sr.db "REM Cleanup system tray memory icon Echo y|reg Delete" Hkey_classes_root\local Settings\ Software\microsoft\windows\currentversion\traynotify "/V iconstreams echo y|reg Delete" Hkey_classEs_root\local settings\software\microsoft\windows\currentversion\traynotify "/V pasticonsstream rem Restarting Windows Shell Explorer start Explorer
Copy the above content to the Force Refresh icon cache. bat Double click to refresh the System icon cache.


Finally, attach a final effect chart:






Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.