自动识别当前鼠标下面的控件

版权声明:本文为博主原创文章,未经博主允许不可以转载。 https://blog.csdn.net/aasmfox/article/details/80433863

拖放控件时,要判断当前鼠标下面的控件,可以使用以下函数:

WindowFromPoint,

 ChildWindowFromPoint, 

ChildWindowFromPointEx,

RealChildWindowFromPoint,


ChildWindowFromPointEx,可以过滤隐藏的控件,这个函数正是需要的。




猜你喜欢

转载自blog.csdn.net/aasmfox/article/details/80433863