MDI子框架强制调整父框架的大小 [英] MDI Child Frame Forces Parent Frame to Resize

查看:104
本文介绍了MDI子框架强制调整父框架的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解MDI Child的默认处理在带有SC_MAXIMIZE的WM_SYSCOMMAND上的作用.

现在,每当我的MDI子级被告知最大化时,DefaultProcessing()函数始终总是也会向父级发送最大化消息.这显然很烦人,而且是非常不良的行为.

I''m trying to understand what the MDI Child''s default processing does on an WM_SYSCOMMAND with SC_MAXIMIZE.

Right now, whenever my MDI Child is told to maximize, the DefaultProcessing() function always ends up sending a maximize message to the parent as well. This is obviously quite annoying and a very undesirable behaviour.

Can someone help me find documentation on these topics, or explain why this happens?

推荐答案

您是否需要最佳实用建议呢? 请勿使用MDI!

即使在Microsoft引入它的情况下,它也非常令人气our,难以实施并且给用户带来极大的不便.

另请参阅:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages [在WPF中使用MDI窗口的问题 [ ^ ],
提供错误的MDIContainer [
Do you want a best practical advice instead? Never use MDI!

It''s very much discouraged, even by Microsoft where it was introduced, harder to implement and extremely inconvenient for the user.

See also:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^].

—SA


这篇关于MDI子框架强制调整父框架的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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