Compartilhar via


CMFCMaskedEdit::EnableGetMaskedCharsOnly

Specifies whether the GetWindowText method retrieves only masked characters.

void EnableGetMaskedCharsOnly(
   BOOL bEnable=TRUE 
);

Parameters

  • [in] bEnable
    TRUE to specify that the CMFCMaskedEdit::GetWindowText method retrieve only masked characters; FALSE to specify that the method retrieve the whole text. The default value is TRUE.

Remarks

Use this method to enable retrieving masked characters. Then create a masked edit control that corresponds to the telephone number, such as (425) 555-0187. If you call the GetWindowText method, it returns "4255550187". If you disable retrieving masked characters, the GetWindowText method returns the text that is displayed in the edit control, for example "(425) 555-0187".

Requirements

Header: afxmaskededit.h

See Also

Reference

CMFCMaskedEdit Class

Hierarchy Chart