CEdit - A Simple Question
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Migrating from VB, I could not find an easy way to trap a return keystroke and then act apon it on a CEDit control. Update and Change don't pass a parameter telling you which key has been pressed. Have I missed something? - X
-
Migrating from VB, I could not find an easy way to trap a return keystroke and then act apon it on a CEDit control. Update and Change don't pass a parameter telling you which key has been pressed. Have I missed something? - X
You will have to subclass the control to be able to catch keystrokes. See SubclassDlgItemin MSDN. Then add a handler for the WM_CHAR message. Cheers, /Fredrik