hi, i hope someone can help, this is driving me crazy
my left arrow key has just stopped generating ON_WM_KEYDOWN events
i know the key is actually working and i can see the key here
BOOL CTabTraxView::PreTranslateMessage(MSG* pMsg)
{
switch (pMsg->message)
{
case WM_KEYDOWN:
TRACE("CTabTraxView::PreTranslateMessage(MSG* pMsg) %d\n", pMsg->lParam);
case WM_SYSKEYDOWN:
case WM_LBUTTONDOWN:
case WM_RBUTTONDOWN:
case WM_MBUTTONDOWN:
case WM_LBUTTONUP:
case WM_RBUTTONUP:
case WM_MBUTTONUP:
case WM_MOUSEMOVE:
m_ToolTip.RelayEvent(pMsg);
break;
}
return CScrollView::PreTranslateMessage(pMsg);
}
but here
void CTabTraxView::OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags)
{
TRACE("CTab2midiView::OnKeyDown nChar=%d\n", nChar);
GetDocument()->OnKeyDown(nChar);
}
i can see all keys including VK_RIGHT but not VK_LEFT
please help if you can, i don't really want to call OnKeyDown from PreTranslateMessage, i'd rather find and fix the problem