Check to see whether any ancestor windows are drop targets.

This commit is contained in:
Huw D M Davies 2000-12-15 20:54:18 +00:00 committed by Alexandre Julliard
parent d0f8bfd778
commit 3d3dc23ab2
1 changed files with 6 additions and 2 deletions

View File

@ -1862,8 +1862,12 @@ static void OLEDD_TrackMouseMove(
/*
* Find-out if there is a drag target under the mouse
*/
newDropTargetNode = OLEDD_FindDropTarget(hwndNewTarget);
HWND nexttar = hwndNewTarget;
do {
newDropTargetNode = OLEDD_FindDropTarget(nexttar);
} while (!newDropTargetNode && (nexttar = GetParent(nexttar)) != 0);
if(nexttar) hwndNewTarget = nexttar;
trackerInfo->curDragTargetHWND = hwndNewTarget;
trackerInfo->curDragTarget = newDropTargetNode ? newDropTargetNode->dropTarget : 0;