switch (pMsg->message)
{
case WM_KEYDOWN:
{
// 过滤一些快捷键
if (m_pView->IsBrowseMode())
{
int nID = 0;
switch (pMsg->wParam)
{
case _T('V'): nID = ID_EDIT_PASTE; break;
case _T('X'): nID = ID_EDIT_CUT; break;
case _T('Y'): nID = ID_EDIT_REDO; break;
case _T('C'): nID = ID_EDIT_COPY; break;
case _T('Z'): nID = ID_EDIT_UNDO; break;
case _T('A'): nID = ID_EDIT_SELECT_ALL;break;
case _T('D'): nID = ID_FO_TAB_ORDER;break;
}
if (nID != 0 && HIBYTE(GetKeyState(VK_CONTROL)))
return TRUE;
if (HIBYTE(GetKeyState(VK_DELETE)))
return TRUE;
}