how to trap enter key in MFC
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
plz answer
-
plz answer
BOOL CMyDlg::PreTranslateMessage(MSG* pMsg)
{
if ((pMsg->message == WM_KEYDOWN))
{
if (pMsg->wParam == VK_RETURN)
{
return TRUE;
}
}return CDialog::PreTranslateMessage(pMsg);
}
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
/. #3848917