TVItemRect[Node, textonly] - returns the rectangle occupied by the node in the client area of the window (all or only its text). If the node is partially visible in the window, the returned rectangle can go beyond the bounds of the client rectangle. If the node is not visible at all, a rectangle with all zero coordinates is returned;
TVItemAtPos(X, Y, where) - returns the handle of the node located in the client part of the object window at the point with coordinates (X, Y). In this case, the where variable returns what part of the given node is at this point: the main icon, the status icon, the text or part of the node to the right of the text or to the left of the displayed part of the element;
OnTVBeginDrag - an event that is triggered when the operation of starting dragging a tree node with the mouse is recorded;