Share via


CDragListBox::Dropped

Called by the framework when an item is dropped within a CDragListBox object.

virtual void Dropped( 
   int nSrcIndex, 
   CPoint pt  
);

Parameters

  • nSrcIndex
    Specifies the zero-based index of the dropped string.

  • pt
    A CPoint object that contains the coordinates of the drop site.

Remarks

The default behavior copies the list box item and its data to the new location and then deletes the original item. Override this function to customize the default behavior, such as enabling copies of list box items to be dragged to other locations within the list.

Requirements

Header: afxcmn.h

See Also

Reference

CDragListBox Class

Hierarchy Chart

CDragListBox::BeginDrag