Vcl.ComCtrls.TCustomTreeView.GetHitTestInfoAt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetHitTestInfoAt(X, Y: Integer): THitTests;

C++

THitTests __fastcall GetHitTestInfoAt(int X, int Y);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomTreeView

Description

Returns information about the location of a point relative to the client area of the tree view control.

Call GetHitTestInfoAt to determine what portion of the tree view, if any, sits under the point specified by the X and Y parameters. For example, use GetHitTestInfoAt to provide feedback about how to expand or collapse nodes when the mouse is over the relevant portions of the tree view.

GetHitTestInfo returns a THitTests type. This set describes the possible tree view elements under the mouse.

See Also

Code Examples