BOOL BeginDrag( int nImage, CPoint ptHotSpot );
Return Value
Nonzero if successful; otherwise 0.
Parameters
nImage
Zero-based index of the image to drag.
ptHotSpot
Coordinates of the starting drag position (typically, the cursor position). The coordinates are relative to the upper left corner of the image.
Remarks
Call this function to begin dragging an image. This function creates a temporary image list that is used for dragging. The image combines the specified image and its mask with the current cursor. In response to subsequent WM_MOUSEMOVE messages, you can move the drag image by using the DragMove member function. To end the drag operation, you can use the EndDrag member function.
CImageList Overview | Class Members | Hierarchy Chart
See Also CImageList::Draw, CImageList::EndDrag, CImageList::DragMove