检查窗口的点是否可见。 [英] Check if point of window is visible.

查看:70
本文介绍了检查窗口的点是否可见。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。我的应用程序中有几个浮动窗口(停靠面板套装),这些窗口有空父(停靠面板套装以这种方式工作)。是否可以定义其中一个窗口的某个点是不可见的,因为它位于另一个窗口的后面?或者也许这个窗口的Z订单
也足够了。谢谢。


Hello. I have several floating windows(dock panel suit) in my app and these windows have null parent(dock panel suit works this way). Is it possible to define if a point of one of such windows is invisible because it's behind another one? Or maybe Z order of such window will be enough too. Thanks.

推荐答案

您好

您可以查看是否.Bounds.Contains .Point,或者.Bounds.Intersects和另一个.Bounds,也许检查一个或另一个是.TopMost

You could check if .Bounds.Contains the .Point, or if .Bounds.IntersectsWith another .Bounds, and perhaps check if one or the other is .TopMost


这篇关于检查窗口的点是否可见。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆