Jump to content

DrgLazyDrop

From EDM2

This function is called to invoke a lazy drop operation.

Syntax

DrgLazyDrop(hwndTarget, ulOperation, pptlDrop)

Parameters

hwndTarget (HWND) - input
Handle of the target window receiving the drop.
ulOperation (ULONG) - input
Drop operation code.
Possible values:
DO_DEFAULT - Default operation.
DO_COPY - Operation is a copy.
DO_MOVE - Operation is a move.
DO_LINK - Operation is a link.
pptlDrop (PPOINTL) - input
Pointer to the drop location in desktop coordinates.

Returns

rc (BOOL) - returns
Success indicator.
TRUE - Objects are successfully dropped.
FALSE - An error occurred.

Remarks

This function can be used to implement a "drop" choice from a menu.

Example Code

#define INCL_WINSTDDRAG
#include <os2.h>

HWND   hwndTarget; /* Handle of the Target window          */
ULONG  ulDropOp;   /* Operation to be performed on the drop */
POINTL ptlDrop;    /* Drop location                        */
BOOL   bSuccess;   /* Return code from API                 */

ptlDrop.x=5;
ptlDrop.y=10;
usDropOp=DO_COPY;
bSuccess=DrgLazyDrop(hwndTarget, ulDropOp, &ptlDrop);