Then, if your edit box is a multi-line edit control, set the ES_WANTRETURN
style on it.
Dave Smith
MCSE, MCT, MVP
"Drew C. Schleit" <asch...@hotmail.NOSPAM.com> wrote in message
news:YI8e5.1250$Z5.5...@typhoon1.ba-dsg.net...
--
Kee Dae Nam
kn...@home.com
Knowledge is power -- Francis Bacon
And a fourth answer ...
Override PreTranslateMessage() in the dialog and look for WM_KEYDOWN and
VK_RETURN. Return TRUE and do not call the base class.
Personally, I like this way the best. No extra derived classes, and no
"trickery" with the buttons.
HTH,
David Wilkinson
===============