BOOL CkeyboardDlg::PreTranslateMessage(MSG* pMsg) //pMsg: Points to a MSG structure that contains the message to process. { if (WM_KEYDOWN == pMsg->message) { if (VK_F10 == pMsg->wParam) { MessageBox(_T("You press the F10!"),MB_OK); return 0; } } return CDialog::PreTranslateMessage(pMsg); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)