Hello!

I have created a Listbox like control in the style of cwSimpleButton.

It consists of a cWidgetBase.

I am implementing my own drag / drop functionality in order to drag items from one of such a control to another

What I am doing is creating a cWidgetForm on the hosting VB6 form. I have added a cairo surface as an image source to it.
When I begin dragging from one "control" to the outside, I draw onto that cairo surface and move this cairo surface around with the help of the cWidgetForm. It works fine.

To be able to detect the mouse move on the other control, I call w.StartDrag.
On the other controls, I am unable to detect MouseMoves, but HitTest works, so I use that.
However, I am unable to detect mouse up on this drop target control.
That is logical to me because I have "uncoupled" the mouse events from the source control by using w.StartDrag, and the target control has not captured it, so it will not receive the MouseUp event.

Currently I help myself by a global function to check if the mouse is down (or no longer down, which means a MouseUp).

Is there anything that I overlooked to achieve my task easier?

Thank you!