BOOL cDlgGrid::PreTranslateMessage(MSG* pMsg) { if (WM_KEYFIRST <= pMsg->message && pMsg->message <= WM_KEYLAST) { HACCEL hAccel = m_hAccel; if (hAccel && ::TranslateAccelerator(m_hWnd, hAccel, pMsg)) return TRUE; } if (pMsg->message==WM_KEYDOWN && pMsg->wParam == VK_CONTROL) { OnFind(); // implements and find dialog } return CDialog::PreTranslateMessage(pMsg); };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)