重载后PreTranslateMessage不响应任何消息,请高手指点下谢谢,窗口为模态

解决方案 »

  1.   

    直接return TRUE;不过为什么不接受任何消息,这样做会引发很多问题的。
      

  2.   

    不是把父类的PreTranslateMessage去掉了吧?贴代码.
      

  3.   

    BOOL CCommonDlg::PreTranslateMessage(MSG* pMsg) 
    {
    // TODO: Add your specialized code here and/or call the base class

    return CToolTipDialog::PreTranslateMessage(pMsg);
    }调试时该函数一直进不来  名父类是从CDIALOG直接过来的并未去掉这个函数。
      

  4.   

    你直接返回父类的PreTranslateMessage函数看看~~
    return CDialog::PreTranslateMessage(pMsg);