Virtual-TreeView icon indicating copy to clipboard operation
Virtual-TreeView copied to clipboard

Remove TVTDragImageStates.disSystemSupport

Open joachimmarder opened this issue 7 years ago • 6 comments

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.

joachimmarder avatar Jun 15 '18 18:06 joachimmarder

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.

joachimmarder avatar Jun 15 '18 18:06 joachimmarder

+1

pyscripter avatar Jun 16 '18 00:06 pyscripter

Header dragging still uses old code without IDragSourceHelper, we first need to revise header dragging code.

joachimmarder avatar Jun 24 '18 20:06 joachimmarder

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().

joachimmarder avatar Jan 22 '19 19:01 joachimmarder

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.

joachimmarder avatar Jun 17 '21 20:06 joachimmarder