SetLimitText in Win32

Limit number of characters to be entered in edit control?
jd9288Asked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
If you are not using MFC, send 'EM_SETLIMITTEXT' to the edit control and specify the max. number of characters in wParam.
0
 
stefan73Commented:
Hi jd9288,
Yes:

Call this member function to set the text limit for this CEdit object.

void SetLimitText(
   UINT nMax
);


Cheers,
Stefan
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.