Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Controls
Control Library
Edit Control
Macros
 Edit_SetPasswordChar Macro

  Switch on low bandwidth view
Edit_SetPasswordChar Macro

Sets or removes the password character for an edit or rich edit control. When a password character is set, that character is displayed in place of the characters typed by the user. You can use this macro or send the EM_SETPASSWORDCHAR message explicitly.

Syntax

void Edit_SetPasswordChar(

    HWND hwndCtl,     UINT ch );

Parameters

hwndCtl
A handle to the control.
ch
The character to be displayed in place of the characters typed by the user. If this parameter is zero, the control removes the current password character and displays the characters typed by the user.

Return Value

Remarks

For more information, see EM_SETPASSWORDCHAR.

Macro Information

HeaderDeclared in Windowsx.h
Minimum operating systems Windows 95, Windows NT 3.1
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker