|
-
April 29th, 1999, 08:04 PM
#1
Catching the enter Key
Hi
I want to know everytime the user presses the enter key in my view class
Can anybody help me?
Thanks
-
April 30th, 1999, 03:33 AM
#2
Re: Catching the enter Key
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|