在运行时关闭win32程序 [英] close win32 program in run time
本文介绍了在运行时关闭win32程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好。
我正在编写一个可以处理文件的Win32 API程序。在运行时,当我想关闭程序时,窗口右上方的关闭按钮被禁用,当我尝试关闭程序时,结束程序和此程序没有响应出现,我应该手动关闭程序。
i已经尝试过wm_close和wm_destroy以及PostQuitMessage和.......但在运行时程序没有得到任何消息。
如果你知道原因请帮助我。
非常感谢
解决方案
使用
_ exit( 0 );
hello everybody
i am writing a Win32 API program which works with files. in run time when i want to close the program the close button in right top side of window is disabled and when i try to close the program the 'End Program' and 'this program is not responding' appears and i should close the program manually.
i have tried wm_close and wm_destroy and PostQuitMessage and ... . but in run time program doesn't get any message.
if you know the reason please help me.
thanks a lot
解决方案
Use
_exit(0);
这篇关于在运行时关闭win32程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文