Exemple #1
0
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);
}
Exemple #2
0
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);
}