在出现该问题的操作之前加入下面代码即可:
AfxOleGetMessageFilter()->EnableBusyDialog(FALSE);
AfxOleGetMessageFilter()->SetBusyReply(SERVERCALL_RETRYLATER);
AfxOleGetMessageFilter()->EnableNotRespondingDialog(TRUE);
AfxOleGetMessageFilter()->SetMessagePendingDelay(-1);
注意:在加入上面代码的源文件的顶部包含头文件:<afxwin.h> #include <afxole.h>
http://www.diybl.com/course/3_program/vc/vc_js/2008614/125294.html
消息过滤器参看MSDN:http://msdn.microsoft.com/zh-cn/library/f87xw65k.aspx
文章出处:飞诺网(www.firnow.com):http://dev.firnow.com/course/3_program/vc/vc_js/2008614/125294.html
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/pcseye/archive/2009/02/17/3901576.aspx