Hi!
In the beginning of a drag'n'drop operation out of my SysTreeView32
window I'm using the following code to get such nice alphablended drag
icons like Windows Explorer:
If Not (IDragSourceHelper Is Nothing) Then
' m_hWnd is the treeview's hWnd, pt is the current cursor position
' and IDataObj is the source's (a shell item) IDataObject
' implementation
IDragSourceHelper.InitializeFromWindow m_hWnd, pt, IDataObj
End If
' now start it
DoDragDrop IDataObj, IDrpSrc, SupportedEffects, VarPtr(WantedEffect)
This works fine. However, if the dragged item's icon has an alpha
channel, all alphablended pixels will be drawn in ugly light-red.
Is there any way to get the icons drawn correctly?
Thanks in advance.
Timo
--
www.TimoSoft-Software.de English: www.en.TimoSoft-Software.de
Stopp TCPA/TCG & NGSCB/Palladium/DRM www.notcpa.org