Click to See Complete Forum and Search --> : Q : Password CEdit


Jeremy Davis
June 1st, 1999, 08:43 AM
Does anyone know if it is possible or know of an alternative control to CEdit that does NOT show the number of chars in the password when the password bit is set.

If the password is QWERTY obviously I will get displayed "******". I would like to display simply say "**********" even if I enter just "Q" or "QWERTY". This way people viewing the computer do not know how many characters there are in the password.

I'm a hardware engineer that happens to write software occasionally. I could write a subclass of CEdit but it probly wouldn't be that good or clean!

Thanks for any help.

Jonathan
June 2nd, 1999, 09:57 PM
then you would have to do this in the En_CHANGE Event
m_EditField.SetWindowText("the password"+" ");