Jump to content

DrgCancelLazyDrag

From EDM2
Revision as of 00:07, 8 April 2025 by Iturbide (talk | contribs) (Created page with "This function is called to cancel the current drag operation. ==Syntax== DrgCancelLazyDrag() ==Returns== ;rc (BOOL) - returns: Success indicator. :: TRUE - Lazy drag is successfully canceled. :: FALSE - An error occurred. ==Remarks== This function posts the DM_DROPNOTIFY message to the source window, specifying a target window handle of zero in hwndTarget. The source window must then free DRAGINFO using DrgFreeDraginfo. ==Example Code== <pre> #define INCL_WI...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function is called to cancel the current drag operation.

Syntax

DrgCancelLazyDrag()

Returns

rc (BOOL) - returns
Success indicator.
TRUE - Lazy drag is successfully canceled.
FALSE - An error occurred.

Remarks

This function posts the DM_DROPNOTIFY message to the source window, specifying a target window handle of zero in hwndTarget. The source window must then free DRAGINFO using DrgFreeDraginfo.

Example Code

#define INCL_WINSTDDRAG
#include <os2.h>

BOOL bResult; /* Return code from API */

bResult=DrgCancelLazyDrag();