ImageList_SetDragCursorImage-Funktion (commctrl.h)

Erstellt ein neues Ziehbild, indem das angegebene Bild (in der Regel ein Mauscursorbild) mit dem aktuellen Ziehbild kombiniert wird.

Syntax

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

Parameter

himlDrag

Typ: HIMAGELIST

Ein Handle für die Bildliste, das das neue Bild enthält, das mit dem Ziehen des Bilds kombiniert werden soll.

iDrag

Typ: int

Der Index des neuen Bilds, das mit dem Ziehbild kombiniert werden soll.

dxHotspot

Typ: int

Die x-Position des Hotspots innerhalb des neuen Bilds.

dyHotspot

Typ: int

Die y-Position des Hotspots innerhalb des neuen Bilds.

Rückgabewert

Typ: BOOL

Gibt bei erfolgreicher Ausführung ungleich null zurück, andernfalls null.

Anforderungen

Anforderung Wert
Unterstützte Mindestversion (Client) Windows Vista [nur Desktop-Apps]
Unterstützte Mindestversion (Server) Windows Server 2003 [nur Desktop-Apps]
Zielplattform Windows
Kopfzeile commctrl.h
Bibliothek Comctl32.lib
DLL Comctl32.dll