How to limit lines in a TextBox control
Shows how to limit a TextBox to a specific number of characters per line and a specific number of lines.
Uses the following API function and messages:
- SendMessage
- EM_GETLINE
- EM_GETLINECOUNT
- EM_LINEFROMCHAR
Back to Code Samples
Copyright © 2000 by Matt E. Hart, All Rights Reserved Worldwide.
Nothing on this web site may be reproduced, in any form, without express written consent.