|
-
June 10th, 1999, 02:40 AM
#1
How to disable the ENTER key
When in my dialog the ENTER key is hit the dialog exits. How can i disable that.
-
June 10th, 1999, 02:46 AM
#2
Re: How to disable the ENTER key
Add a handler for PreTranslateMessage to your dialog class like so...
BOOL CYourDlg::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message == WM_KEYDOWN)
if (pMsg->wParam == VK_RETURN)
return TRUE;
return CDialog::PreTranslateMessage(pMsg);
}
-
June 10th, 1999, 03:10 AM
#3
Re: How to disable the ENTER key
I think both your time to respond and your solution were perfect.
thanks. 
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
|