Solved

Alterring edit box

Posted on 1998-12-02
3
185 Views
Last Modified: 2010-04-02
I have an edit box. The user will enter text into this box that may contain a space or tab. I need to intercept each character that is entered and display a star. So if "Microsoft Visual" is entered, I want to see only "****************".Exactly like a password. How do I do that?
0
Comment
Question by:rose3377
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 1179080
Already done for you.  Use the ES_PASSWORD style.  That is what it does!

Let me know if you have questions.
0
 
LVL 11

Expert Comment

by:alexo
ID: 1179081
[Not typing fast enough...]

Use the ES_PASSWORD style to display all characters in the edit control as asterisks.  You can define a different character to display by using the EM_SETPASSWORDCHAR message.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1179082
I don't know your typing speed seems fine to me!  : - )
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

757 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

22 Experts available now in Live!

Get 1:1 Help Now