Partager via


CDragListBox::Dragging

Called by the framework when a list box item is being dragged within the CDragListBox object.

virtual UINT Dragging(
   CPoint pt 
);

Parameters

  • pt
    A CPoint object that contains the x and y screen coordinates of the cursor.

Return Value

The resource ID of the cursor to be displayed. The following values are possible:

  • DL_COPYCURSOR   Indicates that the item will be copied.

  • DL_MOVECURSOR   Indicates that the item will be moved.

  • DL_STOPCURSOR   Indicates that the current drop target is not acceptable.

Remarks

The default behavior returns DL_MOVECURSOR. Override this function if you want to provide additional functionality.

Requirements

Header: afxcmn.h

See Also

Reference

CDragListBox Class

Hierarchy Chart

CDragListBox::BeginDrag

CDragListBox::CancelDrag

Other Resources

CDragListBox Members