COleDropTarget::OnDragScroll

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

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:

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.

Remarks

Called by the framework before calling OnDragEnter or OnDragOver to determine whether point is in the scrolling region. 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.

COleDropTarget OverviewClass MembersHierarchy Chart