Windows has drag-and-drop APIs (e.g. RegisterDragDrop ), but associated with windows and windows (often in different applications), and not with coordinates.
If you want to work with the coordinates delta-x and delta-y, then the message of the button "down" and "button up" is suitable.
source share