Edit_SetPasswordChar macro (windowsx.h)

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(
   hwndCtl,
   ch
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

ch

Type: UINT

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

None

Remarks

For more information, see EM_SETPASSWORDCHAR.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header windowsx.h