G
Guest
I have a list control. On doubleclick of list item, a new dlg opens. Now, i want to handle 'OnEnter Key'also. i.e. When a list item is selected & Enter key is pressed, the new dlg shd open
I tried implementing with NM_RETURN. But, the application does not catch this msg
Also i tried with LVN_KEYDOWN.
void CListExDlg::OnKeydownList(NMHDR* pNMHDR, LRESULT* pResult)
LV_KEYDOWN* pLVKeyDow = (LV_KEYDOWN*)pNMHDR
// TODO: Add your control notification handler code her
if(pLVKeyDow->wVKey == VK_RETURN
AfxMessageBox("KeyDOwn");
els
AfxMessageBox("NO");
*pResult = 0
But it does not catch 'Enter' Key of KeyBoard.
But when if(pLVKeyDow->wVKey == VK_SHIFT), this works fine
Please let me know how 'Enter' Key event can be checked
I tried implementing with NM_RETURN. But, the application does not catch this msg
Also i tried with LVN_KEYDOWN.
void CListExDlg::OnKeydownList(NMHDR* pNMHDR, LRESULT* pResult)
LV_KEYDOWN* pLVKeyDow = (LV_KEYDOWN*)pNMHDR
// TODO: Add your control notification handler code her
if(pLVKeyDow->wVKey == VK_RETURN
AfxMessageBox("KeyDOwn");
els
AfxMessageBox("NO");
*pResult = 0
But it does not catch 'Enter' Key of KeyBoard.
But when if(pLVKeyDow->wVKey == VK_SHIFT), this works fine
Please let me know how 'Enter' Key event can be checked