Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Drag'n'Drop between ListViews

14 views
Skip to first unread message

DJHolliday

unread,
Apr 24, 2013, 10:07:33 AM4/24/13
to
Hi,

I'm trying to implement a Drag'n'Drop between two controls on the same or different Windows, but in the same application (Windows 7 Desktop).
So far it works fine.
Unfortunately, the image underneath the cursor, created by ListView_CreateDragImage(), disappears at the border of the control.
Now, I would like to see, if there is anything, I can do about that and keep the bitmap with the mousecursor, until the mouse button is finally released on the new control.

Any ideas?

Thanks,

DJ

DJHolliday

unread,
Apr 24, 2013, 10:43:44 AM4/24/13
to
I've found some code for C# or VB.Net, but nothing with plain and simple WIN32 API.
And that's what I am looking for.
Maybe somebody could point me into the right direction.

Thanks,
DJ

DJHolliday

unread,
Apr 24, 2013, 11:16:43 AM4/24/13
to
Never mind, I found out, that during the MouseMove, I just need to set the new window, when calling ImageList_DragEnter.
My image jumps a little, since the Mouse point is converted from Screen-coordinates to the client coordinates.
Apparently, I need to account for Title, border, etc.
Haven't done that one yet.

Cheers,
DJ
0 new messages