Hello,

I have a small dialog with a multiline edit control in it. If I press enter while the edit control has the focus I dont get message WM_COMMAND/IDCANCEL (as with any other controls in the dialog), the dialog just closes without any special notification. Control style ES_WANTRETURN doesnt change this behaviour. How can I get message WM_COMMAND/IDCANCEL when pressing ESC inside multiline edit controls? Without special techniques like subclassing...?

japheth
Posted on 2002-12-08 03:29:43 by japheth
Japheth,

You are probably safer to subclass the edit control rather than mess around trying to find another way to get the result you want.

Regards,

hutch@movsd.com
Posted on 2002-12-08 06:29:51 by hutch--
I implemented subclassing. It works.

Although I'm still asking myself if this is really necessary :)
Posted on 2002-12-08 13:59:57 by japheth