KeyUp Example for Visual C++ 5.0

void CConViewSamplesView::OnKeyUpLeadrastercontainerviewer1 (short KeyCode, short Shift, long lActionID, long lCount) 
{
   CString S; 
   if(this->GetActiveWindow())
   {
      this->GetActiveWindow()->SetWindowText(S + TEXT(" Key ") + (TCHAR)KeyCode + TEXT(" was released"));
   }
}