Board index » delphi » Using Win95 small icons with TImage

Using Win95 small icons with TImage

I need to offer the end user 2 sizes of icon images on a form. I can get a
handle to the small 16 x 16 icons using SHGetFileInfo() but as soon as I try
to assign it to any Delphi component e.g. TImage, it appears immediately to
'stretch' to 32 x 32. Can anyone help me PLEASE! How can I get and use the
16 x 16 icons?

 

Re:Using Win95 small icons with TImage


Dave,
   The DrawIconEx function should solve your problem, I have used it for the
same purposes.

Good Luck,
Jody

Other Threads