• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 618
  • Last Modified:

SetLimitText in Win32

Limit number of characters to be entered in edit control?
0
jd9288
Asked:
jd9288
1 Solution
 
stefan73Commented:
Hi jd9288,
Yes:

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

void SetLimitText(
   UINT nMax
);


Cheers,
Stefan
0
 
jkrCommented:
If you are not using MFC, send 'EM_SETLIMITTEXT' to the edit control and specify the max. number of characters in wParam.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now