Hallo Nick,
As Spivot stated, there are many ways to solve this problem, and adding an accelerator for backspace key is one solution.
Another solution is to override the "PreTranslateMessage" function in your FormView derived view and to notify the button about backspace key activity, as bellow:
BOOL CFormViewView::PreTranslateMessage(MSG* pMsg)
{
//IDC_BACKBUTTON - the id of button to be triggered
if ((pMsg->message == WM_KEYUP) && (pMsg->wParam == VK_BACK))
PostMessage(WM_COMMAND,MAKEWPARAM(IDC_BACKBUTTON,BN_CLICKED),NULL);
//finally call the base class implementation
return CFormView::PreTranslateMessage(pMsg);
}
Hope this helps,
Silvius
Silvius Iancu