Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2016-10-17
3
Medium Priority
?
42 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 1000 total points (awarded by participants)
ID: 41847673
How is your DrawChildWindow() implemented? Please show us the code
0
 
LVL 35

Accepted Solution

by:
sarabande earned 1000 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 35

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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 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++.
Suggested Courses

636 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