DLL laod窗口不正常显示 [英] DLL laod Window not normal show
本文介绍了DLL laod窗口不正常显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
mainForm = CreateWindowEx (.....);
ShowWindow(mainForm,SW_SHOWNORMAL) ;
//::FindWindow("WindowsApp",NULL)
UpdateWindow(mainForm);
DLL laod窗口无法正常显示
闪烁,显示时间少于一秒
请帮我.
DLL laod Window not normal show
flash across, Show time less than one second
please help me. thanks!
推荐答案
我相信您尚未通过调用函数GetMessage
添加消息循环.只需在该代码后添加以下内容即可:
I believe you haven''t added a message loop, by calling the functionGetMessage
. Just try to add the following right after that code:
mainForm = CreateWindowEx (.....);
ShowWindow(mainForm,SW_SHOWNORMAL) ;
//::FindWindow("WindowsApp",NULL)
UpdateWindow(mainForm);
//...
MSG msg;
while( GetMessage(&msg, 0, 0, 0) > 0 ) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
要进一步阅读: GetMessage函数 | 了解消息循环.
For further reading: GetMessage function | Understanding the Message Loop.
还可以再次安装IDE.
也许您应该读更多的书!
您的问题我没有很好的答案,希望您现在能解决!
Also you can install you IDE again.
May be you shoult read more book of it!
I don''t have any good answer of you question,and I wish you can solve now!
这篇关于DLL laod窗口不正常显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文