CRichEdit.GetPasswordCharmethod
Retrieves the password character that a rich edit control displays when the user enters text.
Syntax
FUNCTION GetPasswordChar (BYVAL hRichEdit AS HWND) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. |
Return value
The return value specifies the character to be displayed in place of any characters typed by the user. If the return value is NULL, there is no password character, and the control displays the characters typed by the user.
Description
Retrieves the password character that a rich edit control displays when the user enters text.
Remarks
If an edit control is created with the ES_PASSWORD style, the default password character is set to an asterisk (*). If an edit control is created without the ES_PASSWORD style, there is no password character. To change the password character, send the SetPasswordChar message.
Reference
- Defined in AfxNova/CRichEdit.inc:590
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class