方向键(←): VK_LEFT (37)方向键(↑): VK_UP (38)方向键(→): VK_RIGHT (39)方向键(↓): VK_DOWN (40)响应WM_KEYDOWNvoid CXXXXView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags){if(VK_LEFT==nChar){MessageBox("xxx");}CView::OnKeyDown(nChar, nRepCnt, nFlags);}