MDI应用程序上的dlg domodal [英] dlg domodal on MDI app

查看:84
本文介绍了MDI应用程序上的dlg domodal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我有一个MDI应用程序,在该应用程序上我想显示一个请稍等dlg,直到在视图上加载数据为止.当我这样做时,请在MDI上等待dlg do modal,数据加载被卡住,而当我关闭时,请等待dlg,数据加载被释放.我想同时进行两个处理.意味着在视图上加载数据时,请等待dlg出现,一旦数据加载完成,请等待dlg应该销毁.任何人都可以帮我解决这个问题.

在此先感谢.

HI!

I have a MDI application, on which I want to show a please wait dlg till data loading on the view. When I am doing please wait dlg do modal on the MDI, data loading is getting stuck, and when I am closing please wait dlg, data loading get released. I want to do both process simultaneous. Means when data is loading on the view, please wait dlg should appear and as soon as data loading completed please wait dlg should destroy. Can any one help me for this prblm.

Thanks in advance.

推荐答案

我为此使用了Google
http://www.codeguru.com/cpp/controls/controls/article.php/c2269 [^
I used google for this
http://www.google.com/search?hl=en&client=firefox-a&hs=Kzw&rls=org.mozilla%3Ate-IN%3Aofficial&q=WAIT+MFC+DIALOG+&aq=f&aqi=&aql=&oq=[^]
and I think the best article is from codeguru
http://www.codeguru.com/cpp/controls/controls/article.php/c2269[^


嘿!

我不是很喜欢VC6,但我想我可以通过告诉您这样的屏幕称为启动屏幕"来为您提供一些帮助.有了这些信息,并 [ ^ ]链接,您应该可以将其放在一起;)

祝你好运!
爱德华(Eduard)
Hey!

I''m not really into VC6, but I think I could help you a little by telling you that such a screen is called a ''splash screen''. With that information and this[^] link you should be able to get it together ;)

Good luck!
Eduard


CDialog :: DoModal();创建模式对话框.模态对话框在等待用户响应时阻止程序执行.您可以使用无模式对话框而不是模式对话框.您还可以使用特殊的消息循环(用于单线程方法)来管理后台执行.或者,除了主UI线程之外,您还可以使用其他线程进行后台工作.最后,也不建议您简单地显示一个消息窗口并进行后台工作,直到工作完成,应用程序才会收到用户输入.

您可能需要掌握模态和无模态对话框.
CDialog::DoModal(); creates modal dialog box. Modal dialog blocks program execution while waiting user response. You can use modeless dialog box instead of modal one. You can also manage your background execution using a special message loop for a single threaded approach. Or you can employ another thread for background work in addition to main UI thread. Lastly and not advisable, simply you can show a message window and do your background work, application doesn''t receive user inputs until the work finishes.

You probably need to grasp of modal and modeless dialogs.


这篇关于MDI应用程序上的dlg domodal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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