Hello everybody,
I'm using the filetype icons of the system. The icons are gotten using
SHGetFileInformation and added to an ImageList (ColorDepth = 32bit).
This works fine when ListViewItems are linked to those icons, even with
soft transparencies. But now I need to draw them in the DrawItem event
of a combobox. The image is drawn to the desired position, but the soft
transparencies appear black and that doesn't look fine. Is there are
workaround to fix this?
The code I'm using:
e.Graphics.DrawImage(SmallImageList.Images(iIndex) , e.Bounds.X + 1, _
e.Bounds.Y + 1)
Thanks in advance,
Stefan
--
___________________________________www.VBTricks.de .vu
the free resource for Visual Basic, Gambas and Pascal
components, tips & complete projects
www: http://www.VBTricks.de.vu
mail: vbtricks <at> gmx <dot> net
__________________________________________________ ___