Virtual-TreeView
Virtual-TreeView copied to clipboard
Remove TVTDragImageStates.disSystemSupport
It indicates that application is running on Windows 2000 or higher where IDragSourceHelper is available. Windows 98 support has been dropped a long time ago. Along with thia flag InternalShowDragImage(), RecaptureBackground(), DragTo() and MakeAlphaChannel() can be removed, which are only used if the OS does not natively support drag images.
GetVisible() can also be removed because it will return always False on Windows 2000 or higher. And also code that is executed only if GetVisible() returns True can be removed.
+1
Header dragging still uses old code without IDragSourceHelper, we first need to revise header dragging code.
For header dragging it seems that we will need a dummy IDataObject implementation to that we can attach a bitmap using IDragSourceHelper.InitializeFromBitmap() in TVTDragImage.PrepareDrag().
we will need a dummy IDataObject implementation to that we can attach a bitmap
A quick test with TVTDataObject.Create(FOwner, False) did not work.