falkland
asked on
How to handle NM_RETURN in a dialog
It appears that NM_RETURN never gets sent if a list control is embedded in a dialog. NM_DBLCLK definitely gets called, but NM_RETURN, when the focus is on an item in the list control never gets fired. The only thing that gets fired is the default button handler. I believe that the message never gets fired because I have tried to capture the message in pretranslate and it never captured the message.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
OnOK();
else
OnSearch();
Did the trick!! This code was placed in the bn_clicked handler for the hidden button.