Udostępnij za pośrednictwem


COleDropSource::OnBeginDrag

Called by the framework when an event occurs that could begin a drag operation, such as pressing the left mouse button.

virtual BOOL OnBeginDrag( 
   CWnd* pWnd  
);

Parameters

  • pWnd
    Points to the window that contains the selected data.

Return Value

Nonzero if dragging is allowed, otherwise 0.

Remarks

Override this function if you want to modify the way the dragging process is started. The default implementation captures the mouse and stays in drag mode until the user clicks the left or right mouse button or hits ESC, at which time it releases the mouse.

Requirements

Header: afxole.h

See Also

Reference

COleDropSource Class

Hierarchy Chart

COleDropSource::GiveFeedback

Other Resources

COleDropSource Members