MDI对话框部分显示 [英] MDI Dialog Displays partially

查看:101
本文介绍了MDI对话框部分显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们有一个基于桌面的应用程序.有一个MDI文档,该文档具有以模态循环运行的无模式对话框".还有另一种语言交流,这是一种纯粹的无模式对话.每当我们使用IE或任何其他窗口切换应用程序并返回到应用程序时,我们只能看到主对话框(正在运行模态循环的对话框).

其余框架(包括主框架,菜单)没有出现.该应用程序的其他组件均不可见.仅主对话框可见.

有什么线索或指示可能出什么问题了吗?

任何伟大的事物都将不胜感激.

谢谢
Aravind B.

Hi
We have a desktop based application. There is a MDI document which has a Modeless Dialog running in a Modal loop. There is one another diloag which is a pure modeless dialog. When ever we switch the app with IE or any other window and come back to the application, we are able to see only main dialog (the dialog which is the running the modal loop).

The rest of the frame (including main frame, menu) is not coming up. None of the other components of the application is visible. Only the main dialog is visible.

Any clue or pointers to what could be going wrong?

any great is greatly appreciated.

Thanks
Aravind B.

推荐答案

您说您有一个在模态循环中运行的对话框.

如果是这种情况,那么它将阻止消息发送到主应用.
这就是为什么您看不到它重新粉刷的原因.
否则,您就没有给该应用程序处理消息的机会.

您可能需要在循环中处理消息...
GetMessage/PeekMessage


或者,使两个对话框都变为无模式,并使用WaitCursor或其他机制阻止您的主应用接收输入.
You say you have a dialog that is running in a Modal Loop.

If that is the case, then it''s blocking messages to the main app.
That''s why you don''t see it repaint.

Or you''re not giving the app a chance to process messages.

You might need to process messages in your loop...
GetMessage/PeekMessage


Or alternatively, make both of your dialogs modeless and use a WaitCursor or some other mechanism to block you main app from receiving input.


这篇关于MDI对话框部分显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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