Solved

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

Posted on 2016-10-17
3
38 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
[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 25

Assisted Solution

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

Accepted Solution

by:
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 https://msdn.microsoft.com/en-us/library/windows/desktop/ms648398(v=vs.85).aspx for details.

Sara
0
 
LVL 34

Expert Comment

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

Sara
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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 learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

688 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