File Icons

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Hello,

Is there a way to, after creating a binary (or other kind of) file using a
FileStream object, to set its icon in Windows?
 
Peter said:
Is there a way to, after creating a binary (or other kind of) file using a
FileStream object, to set its icon in Windows?

The icon depends on the file type (extension, such as "file.txt", "foo.doc",
"bla.ico").
 
Herfried K. Wagner said:
The icon depends on the file type (extension, such as "file.txt",
"foo.doc", "bla.ico").

For known file types, yes... but lots of programs create proprietary file
types that have their own icons. Is that a registry issue? And if so, how
would I go about registering a new file type programatically?

This question strays a bit off the topic of this forum, but in previous
version of Windows, a user could set a file icon on a file-by-file basis.
This doesn't seem to be possible any more in XP (I haven't yet moved to
Vista). Or is it?
 
Back
Top