调用:reTranslateMessage时为什么提示:illegal call of non-static member function是不是在哪里声明?
怎么声明?我想通过EDITBOX回车写些代码:就是这样子提示错误...BOOL CTest_SQLDlg::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message==WM_KEYDOWN&&pMsg->wParam==VK_RETURN)
    {
AfxMessageBox("ok"); 
    }
return CEdit::PreTranslateMessage( pMsg ) ;
}
请教各位老师,是怎么回事?