?
Solved

Alterring edit box

Posted on 1998-12-02
3
Medium Priority
?
197 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 150 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
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.
Suggested Courses

762 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