BOOL AFXAPI AfxInternalPumpMessage()
{
_AFX_THREAD_STATE *pState = AfxGetThreadState();
if (!::GetMessage(&(pState->m_msgCur), NULL, NULL, NULL))
{
#ifdef _DEBUG
TRACE(traceAppMsg, 1, "CWinThread::PumpMessage - Received WM_QUIT.\n");
pState->m_nDisablePumpCount++; // application must die
#endif
// Note: prevents calling message loop things in 'ExitInstance'
// will never be decremented
return FALSE;
}
......
上面代码在“thrdcore.cpp”文件中;
注:在这个文档视图中使用了其他消息处理机制,如果在不使用查找框时,程序不会崩,只有使用查找框才概率性崩框,我怀疑是不是在注册static UINT WM_FINDREPLACE = ::RegisterWindowMessage( FINDMSGSTRING );这个消息时和其他消息有冲突,请大神指点。