DROPEFFECT Constants
Applies to: desktop apps only
Represents information about the effects of a drag-and-drop operation. The DoDragDrop function and many of the methods in the IDropSource and IDropTarget use the values of this enumeration.
Remarks
Your application should always mask values from the DROPEFFECT enumeration to ensure compatibility with future implementations. Presently, only some of the positions in a DROPEFFECT value have meaning. In the future, more interpretations for the bits will be added. Drag sources and drop targets should carefully mask these values appropriately before comparing. They should never compare a DROPEFFECT against, say, DROPEFFECT_COPY by doing the following:
if (dwDropEffect == DROPEFFECT_COPY)...
Instead, the application should always mask for the value or values being sought as using one of the following techniques:
if (dwDropEffect & DROPEFFECT_COPY) == DROPEFFECT_COPY)... if (dwDropEffect & DROPEFFECT_COPY)...
This allows for the definition of new drop effects, while preserving backward compatibility with existing code.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012