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

No 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 :


Page view tracker