Help Center

OLEGiveFeedBackfunction

Windowsfunctiondoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION OLEGiveFeedBack (BYVAL Effect AS LONG PTR, BYVAL DefaultCursors AS SHORT PTR) AS HRESULT
Also documented as OLEDragOver — one description covers them all.

Parameters

NameDescription
pDataAn object containing formats that the source will provide and (possibly) the data for those formats. If no data is contained in the object, it is provided when the control calls the GetData method. The SetData and Clear methods cannot be used here.
EffectThe action that has been performed (if any), thus allowing the source to take appropriate action if the component was moved (such as the source deleting the data). See the table below.
iButtonAn integer value that identifies which mouse button caused the event. 1 = left button (1), 2 = right button, or 4 = middle button.
iShiftAn integer which acts as a bit field corresponding to the state of the SHIFT, CTRL, and ALT keys when they are depressed. The SHIFT key is bit 0, the CTRL key is bit 1, and the ALT key is bit 2. These bits correspond to the values 1 (Shift Mask), 2 (Ctrl Mask), and 4 (Alt Mask), respectively. Thei Shift parameter indicates the state of these keys; some, all, or none of the bits can be set, indicating that some, all, or none of the keys are depressed. For example, if both the CTRL and ALT keys were depressed, the value of iShift would be 6.
xThe horizontal position, in pixels, from the left edge of the grid.
yThe vertical position, in pixels, from the top edge of the grid.
stateAn integer that corresponds to the transition state of the control being dragged in relation to a target form or control. The possible values are:
flexEnter(0): Source component is being dragged within the range of a target.
flexLeave(1)Source component is being dragged out of the range of a target.*flexOver(2)Source component has moved from one position in the target to another.:
EffectThe action that has been performed (if any), thus allowing the source to take appropriate action if the component was moved (such as the source deleting the data). See the table below.
DefaultCursorsA boolean value which determines whether the default or a user-defined mouse cursor is used.

Description

Occurs when an object is dragged into the bounds of an element that is acting as the drop target,

Reference