Retrieves the name screen readers announce for the masked edit control, as defined using SetAccessibleName.
C
int SftMask_GetAccessibleName(HWND hwndCtl, LPTSTR lpszName, int cchMax);
C++
int CSftMask::GetAccessibleName(LPTSTR lpszName, int cchMax) const; void CSftMask::GetAccessibleName(CString& string) const;
hwndCtl
The window handle of the masked edit control.
lpszName
The buffer receiving the name, or NULL to retrieve the length of the name.
cchMax
The buffer size, in characters, including the terminating null character.
string
A reference to a CString object where the name will be returned.
The return value is the number of characters copied, not including the terminating null character. If lpszName is NULL or cchMax is 0, the return value is the length of the name, so an application can allocate a buffer of the required size (the length plus one). A name longer than the buffer is truncated.
GetAccessibleName returns the name defined using SetAccessibleName, or an empty string if none was defined. It does not return the caption or label text screen readers use when no name is defined.
SftMask_GetAccessibleName_A and SftMask_GetAccessibleName_W are explicit ANSI/Unicode variants (messages SFTMASKM_GETACCESSIBLENAME_A and SFTMASKM_GETACCESSIBLENAME_W). The ANSI variant converts the name using the system code page. GetAccessibleName is available in SftMask/DLL 7.02 and later.
See Also SetAccessibleName | Accessibility (Screen Readers)