简体   繁体   中英

How to set a little icon on files under windows?

i would to set dynamically a little icon on the files (maybe on folders too) that i lock with my app.

I saw it with google app for synchronize, a little "refresh icon" appears to symbolize they are in synchronization, and i want make the same thing with my app that lock temporarely files to prevent changement meanwhile it works on it.

  • I Imagine it must use c++ api for Windows ?
  • It needs to change all the icon or with windows 10 you can add by a layer another icon ?
  • How to change dynamically an icon files ?

thanks.

Informations:

  • Environnement: Windows10.
  • Target: Files icon.
  • Language: c#, maybe c++ api windows.

You can assign icons to the members of the file type by implementing an icon handler. An icon handler is a type of Shell extension handler that allows you to dynamically assign icons to the members of a file type.

Refer to " How to Create Icon Handlers ".

Similar topic: " How to create a IconHandler used by the shell in c++? "

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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