Solved

Line length in a multiple line CEdit control

Posted on 2001-08-08
2
266 Views
Last Modified: 2013-11-20
Is there any way to set the line length limit in a multiple line CEdit control?
For example: The user is only allowed to write each line with maximum 50 chars, and for example maximum 50 lines.
0
Comment
Question by:JensHell
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 6365302
No but you can still accomplish the same thing:

1) Derive your own class from CEdit, say CMyEdit

2) Override the OnChar member function for your CMyEdit

3) Each time OnChar is called, check the length of the text in the control and do whatever (beep, truncate, etc.) if it's more than 50 chars long
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9521156
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: jhance

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Roshan Davis
EE Cleanup Volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 35
Process filename extension 3 194
bigDiff challenge 17 123
Modbus - whats the maximum I can store in one register? 4 80
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question