Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

主窗口创建子窗口 子窗口关闭的问题 ShowModal相关 #92

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link



无意测试的时候  主窗口创建一个窗口
CAbout public WindowImplBase;

 CAbout AboutForm;
AboutForm.Create(m_hWnd, _T("TAboutForm"),UI_WNDSTYLE_DIALOG, 0, 0, 0, 0, 0, 
NULL);
 AboutForm.CenterWindow();
AboutForm.ShowModal();
关闭About的时候会非常的慢
改成   CAbout* AboutForm = new CAbout();
::ShowWindow(*AboutForm, SW_SHOW);
快了一点 还是慢 后来 在CAbout中的onclose里面 增加
DestroyWindow(m_hWnd); 就快了
////////////////////////////////
一般用户只能接受 0秒关闭
华为dbank 的子窗口就是这样 关闭慢吞吞的 用的想吐 
一般应用开发者 只要 创建ShowModal()就够了 够简单够快速
献给duilib的一个小问题 虽从未用过 

Original issue reported on code.google.com by [email protected] on 12 Nov 2013 at 9:37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant