如何防止 Delphi MDI 应用程序显示最大化子项的标题
如何防止 Delphi MDI 应用程序在 MDI 父窗体的标题中显示当前最大化的 MDI 子项的标题?
先感谢您!
how can I prevent a Delphi MDI application from showing the caption of the currently maximized MDI child in the caption of the MDI parent form?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
按照 mghie 的建议调整 Gerry 的答案:
Tweaking Gerry's answer as mghie suggested:
你不能。 MDI 已经过时了,并且对它的支持已被弃用(实际上,已经弃用多年了)。 由于弃用,这些限制可能永远不会改变。
You can't. MDI is outdated stuff, and support for it is deprecated (actually, it has been for years). The limitations probably won't ever be changed because of the deprecation.
还没有机会对此进行测试,但是:
在子 OnResize 中,测试 WindowState = wsMaximized。
如果是,则设置 Caption := ''
如果没有,请根据需要设置标题 - 您需要记住这一点。
haven't had a chance to test this, but:
in the child OnResize, test for WindowState = wsMaximized.
If it is, then set Caption := ''
If not, set caption as required - you will need to need to remember this.