Figured it out:
Code:BOOL CVGRTaxDlg::PreTranslateMessage(MSG* pMsg) { if((pMsg->message == WM_KEYDOWN) && (pMsg->wParam == VK_RETURN)) { HWND item_hwnd; GetDlgItem(IDC_EDIT_INCOME, &item_hwnd); if (pMsg->hwnd == item_hwnd) { OnButtCalc(); } return CDialog::PreTranslateMessage(pMsg); }




Reply With Quote