如何将子窗口放在父窗口上 [英] how to place the child window over on parent window

查看:102
本文介绍了如何将子窗口放在父窗口上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







如何将子窗口放在父窗口上。

<当父窗口客户端窗口自动与父窗口一起移动时,




i可以设计我的子窗口是MOdeless对话窗口



请帮助我。

Hi,


how can I place the child window over on parent window.

when parent window the client window automatically move with parent window.

i can design my child window is MOdeless Dialog window

pls help me.

推荐答案

使用 GetClientRect 查找位置和父母的大小。使用 GetWindowRect 查找子项的大小。然后从这些值中可以找出相对于父窗口移动子窗口的位置。
Use GetClientRect to find the position and size of the parent. Use GetWindowRect to find the size of the child. Then from those values you can work out where to move the child window in relation to the parent.


这篇关于如何将子窗口放在父窗口上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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