Hello!
I put an edit control on a toolbar. Now I need to intercept a message when a
user pushes Enter key after entering text in the edit control.
I tried to override OnKeyDown, but I still do not get any notification
there.
so how can i get that notification?

Re: CEdit notification by Ajay

Ajay
Mon Jul 28 14:57:39 CDT 2003

Try handling it in PreTranslateMessage of the edit control. You may have to
play with ES_WANTRETURN flag.

--
Ajay Kalra [MVP - VC++]
ajaykalra@yahoo.com


"Maksim P. maksimpogorelov@practiceworks.com>" <<nospam> wrote in message
news:eaP9n0TVDHA.1984@TK2MSFTNGP11.phx.gbl...
> Hello!
> I put an edit control on a toolbar. Now I need to intercept a message when
a
> user pushes Enter key after entering text in the edit control.
> I tried to override OnKeyDown, but I still do not get any notification
> there.
> so how can i get that notification?
>
>