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:
parent
3e18c25058
commit
6f76fa4edb
|
@ -1997,9 +1997,12 @@ static void OLEDD_TrackStateChange(
|
||||||
/*
|
/*
|
||||||
* If the source told us that we should cancel, fool the drop
|
* If the source told us that we should cancel, fool the drop
|
||||||
* target by telling it that the mouse left it's window.
|
* 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:
|
case DRAGDROP_S_CANCEL:
|
||||||
IDropTarget_DragLeave(trackerInfo->curDragTarget);
|
IDropTarget_DragLeave(trackerInfo->curDragTarget);
|
||||||
|
*trackerInfo->pdwEffect = DROPEFFECT_NONE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue