This message is sent to the target window directly under the hot spot of the mouse pointer at the completion of a direct-manipulation operation only if DOR_DROP was returned for the DM_DRAGOVER message sent to the target window during the drag.

The receiver can obtain access to DRAGINFO structure with DrgAccessDraginfo.

The receiver must immediately remove any target emphasis and post a private message to itself to initiate the data transfer conversations needed to complete the operation.

The receiver can use the cxOffset and cyOffset fields in the DRAGITEM structure to position the dropped object within its window relative to the drop point. Multiple objects are moved in the same relative position to each other in the target window as they were in the source.

With standard drag, DrgDrag does not return until the drag set is dropped on a target window. Since the source window is the caller of the DrgDrag, it receives the handle of the target window that the drag set is dropped on when DrgDrag returns.

Lazy Drag is slightly different. Since the drag operation is non-modal, the DrgLazyDrag returns as soon as it has completed its initialization of the drag. DM_DROPNOTIFY is posted to the source window after the drag set is dropped.

When the application receiving the DM_DROP message has finished all data transfer operations, the target window must free the DRAGINFO structure using DrgFreeDraginfo.


[Back] [Next]