Defines the name screen readers announce for the masked edit control.
C
void SftMask_SetAccessibleName(HWND hwndCtl, LPCTSTR lpszName);
C++
void CSftMask::SetAccessibleName(LPCTSTR lpszName);
hwndCtl
The window handle of the masked edit control.
lpszName
The new name. NULL is the same as an empty name.
SetAccessibleName defines the name screen readers such as Narrator, NVDA and JAWS announce for the masked edit control. The default is an empty name, for which screen readers announce the caption text, else the label text, else "Control #" followed by the control's dialog ID. A control without a caption or label, for example one placed next to a separate static text control, should be given a name so the user knows what to enter.
When the announced name changes while a screen reader is attached, the masked edit control raises a UI Automation property-changed event, so the screen reader uses the new name. See Accessibility (Screen Readers).
SftMask_SetAccessibleName_A and SftMask_SetAccessibleName_W are explicit ANSI/Unicode variants (messages SFTMASKM_SETACCESSIBLENAME_A and SFTMASKM_SETACCESSIBLENAME_W). The ANSI variant converts the name using the system code page. SetAccessibleName is available in SftMask/DLL 7.02 and later.
See Also GetAccessibleName | Accessibility (Screen Readers) | Built-In Caption