Hi
I want to know everytime the user presses the enter key in my view class
Can anybody help me?
Thanks
Printable View
Hi
I want to know everytime the user presses the enter key in my view class
Can anybody help me?
Thanks
Override the "PreTranslateMessage" function for the view class. In that function, enter the following code:
if( pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_ENTER )
{
return TRUE;
}
I don't remember if it's return TRUE or FALSE. Play with that value to see which one works, but the other code I'm positive about.. :)
Good luck..
- Troy