Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Line length in a multiple line CEdit control

Posted on 2001-08-08
2
Medium Priority
?
274 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
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.
Suggested Courses

963 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