---
name: "ImageList_SetDragCursorImage"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/ImageList_SetDragCursorImage"
---

# ImageList\_SetDragCursorImage(3w)

## NAME

**ImageList\_SetDragCursorImage** (COMCTL32.@)

## SYNOPSIS

BOOL ImageList\_SetDragCursorImage\
  (\
   HIMAGELIST *himlDrag*,\
   INT        *iDrag*,\
   INT        *dxHotspot*,\
   INT        *dyHotspot*\
  )

## DESCRIPTION

Combines the specified image with the current drag image.

## PARAMS

*himlDrag* **\[In\]**  handle to drag image list.

*iDrag* **\[In\]**  drag image index.

*dxHotspot* **\[In\]**  X position of the hot spot.

*dyHotspot* **\[In\]**  Y position of the hot spot.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**.

## NOTES

**-** The names *dxHotspot*, *dyHotspot* are misleading because they have nothing to do with a hotspot but are only the offset of the origin of the new image relative to the origin of the old image.

**-** When this function is called and the drag image is visible, a short flickering occurs but this matches the Win9x behavior. It is possible to fix the flickering using code like in ImageList\_DragMove.

## IMPLEMENTATION

Declared in **"commctrl.h"**.

Implemented in **"dlls/comctl32/imagelist.c"**.

Debug channel **"imagelist"**.
