Solved

SetLimitText in Win32

Posted on 2004-04-06
2
568 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

740 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