Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sensitive material in edit box

Status
Not open for further replies.

Neoyanderson

Programmer
Apr 18, 2004
16
US
hey im trying to make an edit box that will serve to input the password. how do i make it so the user can type out the password in the box and show up as *'s but still set the correct password to the variable?
 
Create the edit control with style ES_PASSWORD turned on, and use CEdit::SetPasswordChar to set the character you want to be shown in place of every hidden character (default is '*').
 
can you be more specific with this process? how do i set this control and style?
 
CreateWindow(..... ES_PASSWORD | OTHER_STYLES ....)
or
Chech the property password to true or yes or something else (in dependency ov VC version) in design mode if you edit the box visually in resource editor.

Ion Filipski
1c.bmp
 
The class wizard should also have a checkbox for this. Just look at the styles or extended styles of the control and something will suggest it is a password. Check it off and you are good to go.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top