bearweman1
bearweman1
2017-03-28 09:30

VC MFC 死机 发送消息后

  • kernel
kernel32.dll!7c812fd3()     
[下面的框架可能不正确和/或缺失,没有为 kernel32.dll 加载符号] 
T5CAPP14.exe!CMainFrame::OnWndMsg(unsigned int message=49525, unsigned int wParam=2, long lParam=146667264, long * pResult=0x0012ec0c)  行6611 C++
mfc90.dll!7863ba19()    

T5CAPP14.exe!CComCtlWrapper::_ImageList_GetIcon(_IMAGELIST * himl=0x00ef1508, int i=15721880, unsigned int flags=0) 行257 + 0xfe 字节 C++
T5CAPP14.exe!CWnd::SetIcon(HICON__ * hIcon=0x01700728, int bBigIcon=128) 行346 + 0x21 字节 C++

源代码:
BOOL CMainFrame::OnWndMsg(UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult)

{
//解析消息
TCM_MSG msg;
if (CMainWndMsg::ParseMsg(message, wParam, lParam, msg))
{

    //插件管理
    if (GetPlugIns()->OnWndMsg(msg.message, msg.wParam, msg.lParam))
        return TRUE;

    //工作区管理
    if (m_WorkSpaceManeger.OnWndMsg(msg))
        return TRUE;

    //资源区
    if (m_ResSpaceManeger.OnWndMsg(msg))
        return TRUE;

    //框架Bar管理
    if (m_FrameBarsManeger.OnWndMsg(msg))
        return TRUE;

    // pump through current view FIRST
    CView* pView = GetActiveView();
    if (pView != NULL && pView->SendMessage(msg.message, msg.wParam, msg.lParam))
        return TRUE;
}

//默认消息处理
//return CMDIFrameWnd::OnWndMsg(msg.message, msg.wParam, msg.lParam, pResult);
return CMDIFrameWndEx::OnWndMsg(msg.message, msg.wParam, msg.lParam, pResult);

}

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答