m_BtnBtn1Ctrl.LoadBitmaps
Loadbitmaps()
LoadBitmap()
SetBitmap()
Invalidate()
BOOL KeyBoard_press::PreTranslateMessage(MSG* pMsg) { // TODO: Add your specialized code here and/or call the base class CString strTemp; if (pMsg->message == WM_KEYDOWN) { if ( pMsg->wParam == 0x41 || pMsg->wParam == 0x61) //check for both 'a' and 'A' OnBtnBtn1(); if (pMsg->wParam == VK_RETURN || pMsg->wParam == VK_DELETE || pMsg->wParam == VK_ESCAPE || pMsg->wParam == VK_TAB || pMsg->wParam == VK_UP || pMsg->wParam == VK_DOWN || GetKeyState (VK_CONTROL)) { ::TranslateMessage (pMsg); ::DispatchMessage (pMsg); return TRUE; // DO NOT process further } } return CDialog::PreTranslateMessage(pMsg); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)