I have some problems to respond on a event like "Enter". I have a dialogbox with a CEdit field, where the user could enter some stuff. How could I respond, if the user press "Enter" in the textfield?
I will submit the content in the textfield to a function, if the user press the "Enter" key.
If you're using the Visual Studio GUI editor, you can select the textbox, view the properties window, and set "Want Return" to "true". If you're creating the CEdit via code, you can pass ES_WANTRETURN to your CreateWindowEx function.
Also, this is a duplicate of How can I handle the Return key in a CEdit control? which has answers for non-GUI.