Solved

SetLimitText in Win32

Posted on 2004-04-06
2
556 Views
Last Modified: 2007-12-19
Limit number of characters to be entered in edit control?
0
Comment
Question by:jd9288
2 Comments
 
LVL 12

Expert Comment

by:stefan73
ID: 10765412
Hi jd9288,
Yes:

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

void SetLimitText(
   UINT nMax
);


Cheers,
Stefan
0
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 10765447
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now