KeyDown Example for Visual C++ 5.0
void CConViewSamplesView::OnKeyDown (short KeyCode, short Shift, long lActionID, long lCount)
{
CString S;
if(this->GetActiveWindow())
{
this->GetActiveWindow()->SetWindowText(S + TEXT(" Key ") + (TCHAR)KeyCode + TEXT(" was pressed"));
}
}