现在输入什么都没反应的.是不是有什么地方关了的.
一直找不到原因的?
void CTab4::OnChangeEdit1() 
{ MessageBox("该参数修范围为(0-10)","输入错误",MB_OK);
}

解决方案 »

  1.   

    看看你的BEGIN_MESSAGE_MAP部分
    还有头文件中的// Generated message map functions
    //{{AFX_MSG(CTableView)部分
      

  2.   

    BEGIN_MESSAGE_MAP(CTab4, CDialog)
    //{{AFX_MSG_MAP(CTab4)
    ON_WM_TIMER()
    ON_EN_KILLFOCUS(IDC_EDIT1, OnKillfocusEdit1)
    ON_EN_KILLFOCUS(IDC_EDIT2, OnKillfocusEdit2)
    ON_EN_KILLFOCUS(IDC_EDIT3, OnKillfocusEdit3)
    ON_WM_PAINT()
    ON_WM_CTLCOLOR()
    ON_EN_KILLFOCUS(IDC_EDIT4, OnKillfocusEdit4)
    ON_EN_KILLFOCUS(IDC_EDIT5, OnKillfocusEdit5)
    ON_EN_KILLFOCUS(IDC_EDIT6, OnKillfocusEdit6)
    ON_EN_KILLFOCUS(IDC_EDIT7, OnKillfocusEdit7)
    ON_EN_KILLFOCUS(IDC_EDIT8, OnKillfocusEdit8)
    ON_EN_SETFOCUS(IDC_EDIT1, OnSetfocusEdit1)
    ON_WM_DESTROY()
    ON_EN_CHANGE(IDC_EDIT1, OnChangeEdit1)
    ON_EN_CHANGE(IDC_EDIT2, OnChangeEdit2)
    //}}AFX_MSG_MAP
    END_MESSAGE_MAP()
    //{{AFX_MSG(CTab4)
    afx_msg void OnTimer(UINT nIDEvent);
    virtual BOOL OnInitDialog();
    afx_msg void OnKillfocusEdit1();
    afx_msg void OnKillfocusEdit2();
    afx_msg void OnKillfocusEdit3();
    afx_msg void OnPaint();
    afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
    afx_msg void OnKillfocusEdit4();
    afx_msg void OnKillfocusEdit5();
    afx_msg void OnKillfocusEdit6();
    afx_msg void OnKillfocusEdit7();
    afx_msg void OnKillfocusEdit8();
    afx_msg void OnSetfocusEdit1();
    afx_msg void OnDestroy();
    afx_msg void OnChangeEdit1();
    afx_msg void OnChangeEdit2();
    afx_msg void OnChangeEdit9();
    //}}AFX_MSG
      

  3.   

    什么问题的。
    不会是因为这个定义吧
    DDX_Control(pDX, IDC_EDIT1, myedit1);
    DDX_Control(pDX, IDC_EDIT2, myedit2);
    DDX_Control(pDX, IDC_EDIT3, myedit3);
    DDX_Control(pDX, IDC_EDIT4, myedit4);
    DDX_Control(pDX, IDC_EDIT5, myedit5);
    DDX_Control(pDX, IDC_EDIT6, myedit6);
    DDX_Control(pDX, IDC_EDIT7, myedit7);
    DDX_Control(pDX, IDC_EDIT8, myedit8);
    CMyEditCtrl  myedit1;
    CMyEditCtrl  myedit2;
    CMyEditCtrl  myedit3;
    CMyEditCtrl  myedit4;
    CMyEditCtrl  myedit5;
    CMyEditCtrl  myedit6;
    CMyEditCtrl  myedit7;
    CMyEditCtrl  myedit8;