Code: Select all
ON_NOTIFY(LVN_KEYDOWN, IDC_LIST1, OnKeydownList1)
am macelarit PreTranslateMessage in modul urmator si functioneaza ... dar nu imi place ce a iesit :
Code: Select all
BOOL CTestListView::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if(pMsg->message == WM_KEYUP && GetFocus() == GetDlgItem(IDC_LIST) &&
(pMsg->wParam == VK_DOWN ||
pMsg->wParam == VK_UP ||
pMsg->wParam == VK_NEXT ||
pMsg->wParam == VK_PRIOR ||
pMsg->wParam == VK_HOME ||
pMsg->wParam == VK_END))
{
TRACE("DoSomething ...\n");
}
return CFormView::PreTranslateMessage(pMsg);
}