COleDropTarget::OnDragScroll

Called by the framework before calling OnDragEnter or OnDragOver to determine whether point is in the scrolling region.

virtual DROPEFFECT OnDragScroll(
   CWnd* pWnd,
   DWORD dwKeyState,
   CPoint point 
);

Parameters

  • pWnd
    Points to the window the cursor is currently over.

  • dwKeyState
    Contains the state of the modifier keys. This is a combination of any number of the following: MK_CONTROL, MK_SHIFT, MK_ALT, MK_LBUTTON, MK_MBUTTON, and MK_RBUTTON.

  • point
    Contains the location of the cursor, in pixels, relative to the screen.

Return Value

The effect that would result if a drop were attempted at the location specified by point. It can be one or more of the following:

  • DROPEFFECT_NONE   A drop would not be allowed.

  • DROPEFFECT_COPY   A copy operation would be performed.

  • DROPEFFECT_MOVE   A move operation would be performed.

  • DROPEFFECT_LINK   A link from the dropped data to the original data would be established.

  • DROPEFFECT_SCROLL   Indicates that a drag scroll operation is about to occur or is occurring in the target.

Remarks

Override this function when you want to provide special behavior for this event. The default implementation of this function calls CView::OnDragScroll, which returns DROPEFFECT_NONE and scrolls the window when the cursor is dragged into the default scroll region inside the border of the window.

Requirements

Header: afxole.h

See Also

Reference

COleDropTarget Class

Hierarchy Chart

Other Resources

COleDropTarget Members