Freigeben über


OLEDropEffects Property

Specifies the type of drop operations an OLE drop target supports. Available at design time and run time.

Object.OLEDropEffects[= nDropEffect]

Property Values

  • nDropEffect
    Specifies the type of drop operations an OLE drop target supports. The following table lists the values for nDropEffect with a description of each.

    nDropEffect Foxpro.h constant Description
    0 DROPEFFECT_NONE Drop target does not accept the data as a drop target.
    1 DROPEFFECT_COPY Data can be copied to the drop target.
    2 DROPEFFECT_MOVE Data can be moved to the drop target.
    4 DROPEFFECT_LINK Data can be linked to the drop target.

    A drop can support multiple drop operations by adding multiple values together for nDropEffect. For example, if nDropEffect is 3, the drop target supports both copy and move drop operations (3 = 1 (copy) + 2 (move)).

Remarks

OLEDropEffects is a drop target property, and should be set in the OLEDragOver event.

See Also

OLE Drag-and-Drop Overview | OLEDragOver Event | OLEDropHasData Property

Applies To: CheckBox | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | EditBox | Form | Grid | Image | Label | Line | ListBox | OptionButton | OptionGroup | Page | PageFrame | ProjectHook Object | Shape | Spinner | TextBox | ToolBar