Vcl.Controls.TDragImageList.DragLock

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function DragLock(Window: HWND; XPos, YPos: Integer): Boolean;

C++

bool __fastcall DragLock(HWND Window, int XPos, int YPos);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TDragImageList

Description

Associates the drag image with the given Window handle and draws it at the position given by the parameters XPos and YPos while the window is in drag mode.

Call DragLock to use an image in the image list as a drag image when a particular window is dragged. DragLock returns True if successful.

See Also