今天网友给了一段代码,发现里面有个 FindVclWindow 的方法,查了查 delphi的帮助
Returns the windowed control, if any, at the specified location.
Unit
Controls
Category
mouse handling utilities
function FindVCLWindow(const Pos: TPoint): TWinControl;
Description
Call FindVCLWindow to locate the windowed control under a certain point. For example, use FindVCLWindow to identify the windowed control that is under the mouse from another control that has captured the mouse. The Pos parameter specifies the location that must be over the returned windowed control. If there is no windowed control under the Pos parameter, FindVCLWindow returns nil.
它的描述是
调用 FindVCLWindow 定位到一个确定的 point 下面的控件, 例如,使用 FindVCLWindow 可以识别在鼠标下面的 windows 控件