父窗口最大化时不调用ShowWindow [英] ShowWindow is not called when parent window is maximized

查看:254
本文介绍了父窗口最大化时不调用ShowWindow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个模态窗口(第一个窗口),其中另一个窗口(第二个窗口)被调用,当第一个窗口最大化时,它不调用ShowWindow()函数,后者默认情况下不会启动第二个窗口,第二个则是恢复第一个窗口,启动第二个窗口,即调用ShowWindow().

有人可以告诉我为什么在窗口最大化时不调用ShowWindow()吗?当我在initDialog()中由postmessage()显式传递WM_SHOWWINDOW时,将启动第二个窗口.

谢谢,

I have a modal window(1st window) inside which another window(2nd window) gets called, when 1st window is maximized it does not call for ShowWindow() function which in turn 2nd window is not launched by default and secondly when the 1st window is restored the 2nd window is launched i.e ShowWindow() is called.

Can someone tell me why when window is maximized ShowWindow() is not called? When I explicitly pass WM_SHOWWINDOW by postmessage() in initDialog() 2nd window launches.

Thanks,

推荐答案

可以解决,但是为什么呢?这是我的建议:永远不要在模态窗口/对话框的顶部显示任何内容.这样做清楚表明您的UI设计需要认真和严格地审查.

是的,这是某些Microsoft应用程序的典型行为,例如Windows中的控制面板"小程序,但是为什么要遵循明显不良的UI设计示例呢?微软之所以这样做,是因为他们拥有遗留代码的日志.

—SA
It can be resolved, but why? Here is my advice: never ever show anything on top of modal window/dialog. Doing so is a clear indication that your UI design needs to be seriously and critically reviewed.

Yes, this is a typical behavior for some Microsoft applications, such as Control Panel applet in Windows, but why follow apparently bad samples of UI design? Probably Microsoft does it because they have a log of legacy code.

—SA


这篇关于父窗口最大化时不调用ShowWindow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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