CImageList* CreateDragImage( HTREEITEM hItem );
Return Value
Pointer to the image list to which the dragging bitmap was added, if successful; otherwise NULL.
Parameters
hItem
Handle of the tree item to be dragged.
Remarks
Call this function to create a dragging bitmap for the given item in a tree view control, create an image list for the bitmap, and add the bitmap to the image list. An application uses the image-list functions to display the image when the item is being dragged.
The CImageList object is permanent, and you must delete it when finished. For example:
CImageList* pImageList = MyTreeCtrl.CreateDragImage(nItem, &point);
...
...
delete pImageList;
CTreeCtrl Overview | Class Members | Hierarchy Chart
See Also CTreeCtrl::SelectDropTarget, CTreeCtrl::GetDropHilightItem, CTreeCtrl::SetImageList