可以让弹出对话框移动并在主对话框移动时调整大小? [英] possible to let the popup dialog move and resize as the main dialog moves?

查看:83
本文介绍了可以让弹出对话框移动并在主对话框移动时调整大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在另一个对话框的标题栏上放置一个对话框。我试过了子对话框,但是它无法移动到标题栏,弹出对话框能够,但是当主对话框移动或调整大小时它无法移动。任何建议或代码示例?

I am trying to put a dialog on top of the other dialog's title bar. I tried child dialog, but it can not move up to title bar, popup dialog is able to, but it can not move as the main dialog moves or resize. any suggestions or code samples?

谢谢

推荐答案

处理父级中的WM_MOVE和WM_S)ZE这些消息处理程序根据需要移动/调整弹出对话框的大小。
Handle WM_MOVE and WM_S)ZE in the parent and in those message handlers move/resize the popup dialog as needed.


这篇关于可以让弹出对话框移动并在主对话框移动时调整大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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