CView::OnDragScroll

virtual DROPEFFECT OnDragScroll( DWORD dwKeyState, CPoint point );

Return Value

A value from the DROPEFFECT enumerated type, which indicates the type of drop that would occur if the user dropped the object at this position. The type of drop usually depends on the current key state indicated by dwKeyState. A standard mapping of keystates to DROPEFFECT values is:

For more information, see the MFC Advanced Concepts sample OCLIENT.

Parameters

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 the point is in the scrolling region. Override this function when you want to provide special behavior for this event. The default implementation automatically scrolls windows when the cursor is dragged into the default scroll region inside the border of each window.For more information, see the article Drag and Drop: Implementing a Drop Target in Visual C++ Programmer’s Guide.

CView OverviewClass MembersHierarchy Chart

See Also   CView::OnDragEnter, CView::OnDragOver, CView::OnDrop, CView::OnDragLeave, COleDropTarget::OnDragScroll