ImageList_SetDragCursorImage (Compact 2013)

3/28/2014

This function creates a new drag image by combining the specified image with the current drag image.

Syntax

BOOL WINAPI ImageList_SetDragCursorImage(
  HIMAGELIST himlDrag, 
  int iDrag, 
  int dxHotspot, 
  int dyHotspot 
);

Parameters

  • himlDrag
    [in] Handle to the image list that contains the new image to combine with the drag image.
  • iDrag
    [in] Index of the new image to combine with the drag image.
  • dxHotspot and dyHotspot
    [in] Specifies the position of the hot spot within the new image.

Return Value

Nonzero indicates success. Zero indicates failure.

Requirements

Header

commctrl.h

Library

commctrl.lib,
Imgctl.lib

See Also

Reference

Image List Functions
ImageList_EndDrag
ImageList_BeginDrag