然后处理?
希望有例子

解决方案 »

  1.   

    代码如下:BOOL CYourDlg::PreTranslateMessage(MSG* pMsg) 
    {
    if(pMsg->message == WM_KEYDOWN)
    {                      
    if(pMsg->hwnd == GetDlgItem(IDC_ROWEDIT)->GetSafeHwnd())
                      {
        MessgeBox("你的Edit控件的按键消息");
    }
    }  return CDialog::PreTranslateMessage(pMsg);
    }
      

  2.   

    上面示例中的IDC_ROWEDIT用你的Edit的ID去代替。
      

  3.   


    BOOL CTestaDlg::PreTranslateMessage(MSG* pMsg) 
    { if(::GetDlgCtrlID(pMsg->hwnd)==IDC_EDIT1 && pMsg->message==WM_KEYDOWN){
    MessageBox("edit1 keydown");
    } return CDialog::PreTranslateMessage(pMsg);
    }