如何检测当前窗口被拖入子窗口的标题栏的时间 [英] How to detect the when the current window is dragged into the caption bar of the child window

查看:58
本文介绍了如何检测当前窗口被拖入子窗口的标题栏的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有两个Windows,让我们考虑Form1和Form2。如果我正在拖动Form1,我想检测拖动的控件是否被放置在Form2的标题栏上,如下图所示。任何人都可以在拖动Form1时公开如何找到底层控件和
其标题栏边界。



如果您需要更多详细信息,请与我们联系。



问候,


Senthil




R.Senthil

解决方案

嗨  Castorix31


我无法清楚地理解所提供的解决方案。你能否发送代码示例来检测这个标题标题(表格的WndProc),它会有所帮助。


问候,


Senthil


Hi All,

I have two Windows, lets consider Form1 and Form2. If I am dragging the Form1, I want to detect whether the dragged control is placed hover the caption bar of the Form2 as like the below image. Can anyone please guild how to find the underlying control and its caption bar bounds while dragging the Form1.



Please let me know if you need further details on this.

Regards,

Senthil


R.Senthil

解决方案

Hi Castorix31,

I am unable to unable to understand the provided solution clearly. Can you please send the code example to detect this caption header (WndProc of the form), it will be helpful.

Regards,

Senthil


这篇关于如何检测当前窗口被拖入子窗口的标题栏的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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