Make sure that the drop effect of a DnD operation is set to

DROPEFFECT_NONE if the user cancelled the operation.
This commit is contained in:
Francis Beaudet 1999-10-23 14:03:41 +00:00 committed by Alexandre Julliard
parent 3e18c25058
commit 6f76fa4edb
1 changed files with 3 additions and 0 deletions

View File

@ -1997,9 +1997,12 @@ static void OLEDD_TrackStateChange(
/*
* If the source told us that we should cancel, fool the drop
* target by telling it that the mouse left it's window.
* Also set the drop effect to "NONE" in case the application
* ignores the result of DoDragDrop.
*/
case DRAGDROP_S_CANCEL:
IDropTarget_DragLeave(trackerInfo->curDragTarget);
*trackerInfo->pdwEffect = DROPEFFECT_NONE;
break;
}
}