How to remove '|' prompt from ES_PASSWORD input box - Winapi/C

Posted on 2016-10-17
Last Modified: 2016-11-07
Hello, I have the following box

I am asking how can I remove the '|' prompting character from the input box and make it like a standard input box without the appended ES_PASSWORD flag.

Basically it's inconvenient that the prompting character is bigger than the box itself so I'd like to remove it. How is it possible? Here is my CreateWindow call:

Question by:anon anonymous
  • 2
LVL 24

Assisted Solution

chaau earned 250 total points (awarded by participants)
ID: 41847673
How is your DrawChildWindow() implemented? Please show us the code
LVL 33

Accepted Solution

sarabande earned 250 total points (awarded by participants)
ID: 41850677
your edit box is too small in vertical size. the standard caret symbol is bigger. either increase the heights of the two controls (what would make look them nicer, in my opinion) or create your own caret symbol:

see for details.

LVL 33

Expert Comment

ID: 41876852
The Asker didn't answer to the given suggestions, but as the question was clear and the answers also were correct and helpful, the question should be PAQ'ed.


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

Suggested Solutions

Title # Comments Views Activity
C++ standard library based binary archive format 6 104
Dynamically allocate memory 9 64
Add values of each row in an array 3 64
Copy output image from TWindowsMediaPlayer 6 48
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

830 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