Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CEdit::SetPasswordChar
CEdit                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void SetPasswordChar( char ch );
 
  Parameter   Description
 
  <ch>        Specifies the character to be displayed in place of the
              character typed by the user. If <ch> is 0, the actual
              characters typed by the user are displayed.
 
  Remarks
 
  Sets or removes a password character displayed in an edit control when
  the user enters text. When a password character is set, that character
  is displayed for each character the user types in.
 
  This member function has no effect on a multiple-line edit control.
 
  When the SetPasswordChar member function is called, CEdit will redraw
  all visible characters using the character specified by <ch>.
 
  If the edit control is created with the ES_PASSWORD style, the default
  password character is set to an asterisk (*). This style is removed if
  SetPasswordChar is called with <ch> set to 0.
 
  See Also
 
  EM_SETPASSWORDCHAR
 
 
                                     -♦-