wpQueryDefaultDropOp
Appearance
This method is specific to Version 4, or higher, of the OS/2 operating system.
This instance method queries the default drop operation of objects that are dropped on the Desktop. The default is set on the Desktop page of the Desktop's Settings notebook.
Syntax
_wpQueryDefaultDropOp(somSelf)
Parameters
- somSelf (WPDesktop *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPDesktop.
Returns
- rc (ULONG) - returns
- Default drop operation.
- DO_LINK Create shadow of dropped object.
- DO_MOVE Move dropped object.
How to Override
This method can be overridden to control the Desktop's default drop operation.
Usage
This method can be called at any time in order to determine the default drop operation for the current desktop.
Example Code
#define INCL_WINWORKPLACE
#include <os2.h>
WPDesktop *somSelf; /* Pointer to the object on which the method is being invoked. */
ULONG rc; /* Default drop operation. */
rc = _wpQueryDefaultDropOp(somSelf);
/* Example code provided in the source: */
WPDesktop *Desktop;
ULONG ulDropOp;
Desktop = _wpclsQueryObjectFromPath("<WP_DESKTOP>");
ulDropOp = _wpQueryDefaultDropOp(Desktop);
/* Value of ulDropOp is DO_LINK or DO_MOVE */