Solved

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

Posted on 2016-10-17
3
28 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)
ID: 41847673
How is your DrawChildWindow() implemented? Please show us the code
0
 
LVL 33

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 33

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 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…

815 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

9 Experts available now in Live!

Get 1:1 Help Now