Help in trapping <Enter> event from edit box
Posted on 1997-06-16
I am using VC++ (16 bit ver.) MFC for creating a window that contains controls. One of these (sum of two) controls is a simple single-line edit box for user input.
My problem is: The default EN_ messages do not react to <Enter>, whilst I want to update changes(process input) when the user presses the <Enter> key. Does anyone know how I can solve this ??
Just to clarify a bit,I am not asking what is the raw code of <Enter> but what can replace OnChar inside my CView (or any other program element that qualifies for this purpose) in order to use that raw-code or virtual key or whatever. What I am asking is WHERE,if at all, can I catch the <Enter> event when sending it while being inside an edit control ( Which BTW is part of a dialog with IDR_MAINFARAME id, i.e. the main and only view )
Its possible that I should add some more details:
- My application is an SDI one.
- A dialog is attached through a template to the framewindow and view.
- This dialog hasn't got buttons (e.g OK button)
- This dialog has an edit control, and I need to know where is MFC directing an event when pushing <Enter> from inside this control.