I am trying to detect in my application if the Enter/ buttons are pressed Return. My problem is that the LVN_KEYDOWN event (indicates that a key is pressed) does not detect the Enter/ key Return.
I saw similar questions for other languages, but cannot find a solution for C ++.
My event for reading a keystroke:
void ListOption::OnLvnKeydownList1(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMLVKEYDOWN pLVKeyDow = reinterpret_cast<LPNMLVKEYDOWN>(pNMHDR);
if(pLVKeyDow->wVKey == VK_RETURN)
{
OnItemActivateList1(pNMHDR, pResult);
*pResult = 1;
}
*pResult = 0;
}
This code works for almost any key, execept for a key Enter.
There is only one button in my dialog box, and the default button is FALSE. How can I detect a keystroke?
: . CImageSheet, CImagePages (). , ( , ).

Enter, , . LVN_ITEMCTIVATE ( ):