Solved

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

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

https://gyazo.com/3e7a6af9c677c4d1548ba0dc3909057b

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:

DrawChildWindow(Pos, hWnd, "EDIT", NULL, WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | ES_PASSWORD, WS_EX_CLIENTEDGE, (HMENU)LOGIN_PASSWORD);
0
Comment
Question by:anon anonymous
  • 2
3 Comments
 
LVL 24

Assisted Solution

by:chaau
chaau earned 250 total points (awarded by participants)
Comment Utility
How is your DrawChildWindow() implemented? Please show us the code
0
 
LVL 32

Accepted Solution

by:
sarabande earned 250 total points (awarded by participants)
Comment Utility
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 https://msdn.microsoft.com/en-us/library/windows/desktop/ms648398(v=vs.85).aspx for details.

Sara
0
 
LVL 32

Expert Comment

by:sarabande
Comment Utility
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.

Sara
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

743 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

16 Experts available now in Live!

Get 1:1 Help Now