Change the default behavior when the ENTER key is pressed from the input panel

Change the default behavior when the ENTER key is pressed from the input panel

Post by Luobin Yan » Fri, 29 Aug 2003 05:50:33


Hi, guys,

I found this really annoying: I created a dialog based or
a form based application using MFC wizard for Pocket
2002; In this dialog, there are some edit controls. When
the focus is on the edit box and I press the ENTER key
using the input panel, my application just exits. I don't
wanna this to happen. Does anyone have similar experience?
How could we process the ENTER key in the dialog?

Thanks,
Luobin
 
 
 

Change the default behavior when the ENTER key is pressed from the input panel

Post by Ajay » Fri, 29 Aug 2003 17:11:40


Hi,

just comment CDialog::OnOk(); in OnOK() of dialog.

Rgds
Ajay