MFC CEdit and 'Want Return"

  • Thread starter Thread starter Geoyar
  • Start date Start date
G

Geoyar

Guest
It is VS 2019 Community 2019 16.1.6, Win 7 Pro SP1, VC++ Dialog-based application.

Among Project Properties: Win SDK 10.0.17763.0; Platform Tools VS 2019 (142); Use MFC as Shared Dll; Use Unicode Character Set.

In my CDialogEx I have a standard CEdit added to my dialog via Resource Editor. The "Want Return" option is set to "True."

All is compile and built and run just fine.

But the only problem I have:: When the user is entering characters from KBD into the CEdit, the "Enter" Key pressing terminates the app. I expect, because of "Want Return", the "Enter" should be swallowed by CEdit control and does not terminate the App

What is my error and how the user can notify the CEdit that he/she ended entering characters into CEdit?

Thanks.

Continue reading...
 
Back
Top