B
Bob Landers
Hi folks,
I've managed to cobble together some code which - surprisingly (to me at
least) - actually identifies the default icons for each file in a specified
directory. The code identifies the relevant icon by looking up the
defaulticon value in the registry, extracts the icon from the relevant dll
using the ExtractIcon API, converts the icon into a stdPicture format, and
finally stores the altered icon into an imagelist linked to a listview
control on my form in Access 2003.
The icons look okay if sized at 32x32, but the resulting icons are far too
large for my liking. Hence, I have elected to size the icons in 16x16
format. The resulting icons themselves look about the same size as the
icons in windows explorer, and hence more acceptable. However, the icons
I've extracted don't look much like the icons in windows explorer. The
icons in explorer are nice and crisp looking - sharply focused - whereas the
ones I've managed to obtain appear less distinct/focused, a little blurred
even.
When sized at 16x16, the icons I've extracted are still recognisable; but I
would like to improve the picture quality. I've considered converting the
icons into bitmaps before storing them in the imagelist. However, I'm not
sure how to do that or whether it would slow my app down considerably.
Any pointers would be greatly appreciated.
Thanks in advance
Bob
I've managed to cobble together some code which - surprisingly (to me at
least) - actually identifies the default icons for each file in a specified
directory. The code identifies the relevant icon by looking up the
defaulticon value in the registry, extracts the icon from the relevant dll
using the ExtractIcon API, converts the icon into a stdPicture format, and
finally stores the altered icon into an imagelist linked to a listview
control on my form in Access 2003.
The icons look okay if sized at 32x32, but the resulting icons are far too
large for my liking. Hence, I have elected to size the icons in 16x16
format. The resulting icons themselves look about the same size as the
icons in windows explorer, and hence more acceptable. However, the icons
I've extracted don't look much like the icons in windows explorer. The
icons in explorer are nice and crisp looking - sharply focused - whereas the
ones I've managed to obtain appear less distinct/focused, a little blurred
even.
When sized at 16x16, the icons I've extracted are still recognisable; but I
would like to improve the picture quality. I've considered converting the
icons into bitmaps before storing them in the imagelist. However, I'm not
sure how to do that or whether it would slow my app down considerably.
Any pointers would be greatly appreciated.
Thanks in advance
Bob