FindVCLWindow 函数

本文介绍了 Delphi 中的 FindVCLWindow 方法,该方法用于定位指定位置下的窗口控件。通过传递一个 TPoint 参数来指定位置,如果找到对应的窗口控件则返回该控件,否则返回 nil。


今天网友给了一段代码,发现里面有个 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 控件

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值