c++ - Set an icon for a file type -
i have used qt creator , created my.exe file , new extension ".newext" , have manually associated .newext files my.exe like this.
the exe file has icon square figure , named myicon.ico. have described in myapp.rc file icon this:
idi_icon1 icon discardable "myicon.ico"
also in .pro file have added line:
rc_file = myapp.rc
now when set .newext extension in registry value of defaulticon key equal
c:\path\to\my.exe,0
then see squere icon file have associated my.exe
when set
c:\path\to\my.exe,1
then there no icon recognized.
what set value in order see icon white paper (wrapped @ top-right corner) , on square icon - little bit made smaller?
p.s. know should possible without specifying new resource in .exe file because when vista "open my.exe always", puts icon described above (of course without changing .exe).
i don't know if possible @ all. haven't seen application doing that. have discover how windows creates these icons , run mechanism create one, associate generated icon file type. may somewhere deep inside windows.
my advise not don't this, draw own icon.
Comments
Post a Comment