Freigeben über


CImageList::DragMove

Call this function to move the image that is being dragged during a drag-and-drop operation.

static BOOL PASCAL DragMove(
   CPoint pt 
);

Parameters

  • pt
    New drag position.

Return Value

Nonzero if successful; otherwise 0.

Remarks

This function is typically called in response to a WM_MOUSEMOVE message. To begin a drag operation, use the BeginDrag member function.

Example

void CImageListDlg::OnMouseMove(UINT nFlags, CPoint point)
{
   m_myImageList.DragMove(point);

   CDialog::OnMouseMove(nFlags, point);
}

Requirements

Header: afxcmn.h

See Also

Concepts

CImageList Class

CImageList Members

Hierarchy Chart

CImageList::BeginDrag

CImageList::EndDrag

CImageList::Draw