How to edit text on Editbox of Dialog (MFC application)

I have a Dialog, and a Text box (multi line) on dialog
I want to editable this textbox

But If I press Enter, the Dialog disapeare!
I repaire source with this guide, and It work with Enter key

But now, I want to edit textbox, EnterKey <=> new line ... (like Notepad)

How can I do this?
Thank you!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AndyAinscowFreelance programmer / ConsultantCommented:
Resource editor - properties of the edit box.  Set Multiine to true and also Want Return to true.  That should do it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I read the article you posted.
AndyAinscow has said how this Enter task should be fixed correctly.

If we go back to this article, pay attention that there is no default button in his dialog - when you press Enter, actually, you press on this default button. In your case, it is Ok or Cancel and so, when you press Enter, you close the dialog.
Also if you changed PreTranslateMessage as it is shown in the article, you need to check that you don't have a mistake with GetClassName stuff. When you debug your app, set a breakpoint on the line with return TRUE from this function and check if you get there.

But really, this article gives a bad advice.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.