Link to home
Start Free TrialLog in
Avatar of TSMITH
TSMITH

asked on

Edit control max text

How can I restrict the amount of characters that can be typed or displayed in an edit control? I have a class derived from CEdit. Can I just handle OnChar and do the restriction there or is there a better way?

Cheers
T
ASKER CERTIFIED SOLUTION
Avatar of migel
migel

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ghimireniraj
ghimireniraj

you can do that by SetLimitText
or
say the limit by the class wizard
during variable creation