CEdit

I create an edit box on a dialog box , and I want to get the last character typed without GetWindowText .
In Class Wizard I don't have the message WM_KEYDOWN for the Edit box, is only for the dialog box and I want
it for the Edit box
PrastieAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
Use the ClassWizard to associate the edit control to CEdit. Then just edit the header file of the dialog class and replace CEdit with your derived class name.
0
 
chensuCommented:
You need to derive a class from CEdit and override OnKeyDown or OnChar. And associate this class to the edit control.
0
 
PrastieAuthor Commented:
How can I associate the new class to my edit control (Class Wizard cannot do that) ?
0
 
hrumayorCommented:
20 points for this, to much
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.