Sets or gets which data transfer operations are allowed for the object on the source element.
HRESULT IHTMLDataTransfer::get_effectAllowed(BSTR *p);HRESULT IHTMLDataTransfer::put_effectAllowed(BSTR v);
- Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
- BSTR that specifies one of the values listed in Possible Values.
copy Selection is copied. link Selection is linked to the drop target by the data transfer operation. move Selection is moved to the target location when dropped. copyLink Selection is copied or linked, depending on the target default. copyMove Selection is copied or moved, depending on the target default. linkMove Selection is linked or moved, depending on the target default. all All drop effects are supported. none Dropping is disabled and the no-drop cursor is displayed. uninitialized Default. No value has been set through the IHTMLDataTransfer::effectAllowed property. In this case, the default effect still works, although it cannot be queried through this property.
Returns S_OK if successful, or an error value otherwise.
This property can be used to override the default behavior in other applications. For example, the script can set the IHTMLDataTransfer::effectAllowed property to
copyfor a text field and override the Microsoft Word default of
move. In the application ,
copyis the default IHTMLDataTransfer::effectAllowed behavior; however, anchors are set to
linkby default, and text fields are set to
By setting IHTMLDataTransfer::effectAllowed to
none, dropping is disabled but the no-drop cursor is still displayed. To avoid displaying the no-drop cursor, cancel the IHTMLEventObj::returnValue of the ondragstart window.