|All I can do is repeat what I said before. Use the events and notifications of the
CDialog class. The default action when user presses the enter key is to call the
OnOK() function. You add code to that method to capture the text using the
UpdateData() function. Let the dialog do the work for you. Maybe you should spend some time reading the documentation about Dialog Boxes[^] in general, and the
CDialog[^] class in particular. You may also find that the documentation is available in your own language.
One of these days I'm going to think of a really clever signature.