void CFairyPackerView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) { // TODO: Add your message handler code here and/or call default if( nChar == VK_DELETE ) { OnEditDelete(); } CListView::OnKeyDown(nChar, nRepCnt, nFlags); }
void CzpEditorView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) { if (nChar == VK_DELETE) { OnEditDelete(); } else if (nChar == VK_RETURN) { OnEditOpen(); } else if (nChar == VK_BACK) { ZpExplorer& explorer = GetDocument()->GetZpExplorer(); explorer.enterDir(_T("..")); m_pDocument->UpdateAllViews(NULL); } CListView::OnKeyDown(nChar, nRepCnt, nFlags); }