SECMaskEdit::SetMask
BOOLSECMaskEdit::SetMask(LPCTSTRlpszMask)
Sets the input mask for the edit control.
Defined in: SECMEDIT.CPP
Return Value
Nonzero if successful, otherwise 0.
Parameters
lpszMask
The input mask for the edit control.
Comments
The mask can contain any literal, non-mask character, which will be displayed. Special mask characters are used to denote input spots in the edit, based on the following key:
Mask CharacterInput allowed for that field
#Numeric data (0-9)
AAlpha-numeric data (0-9 and a-Z)
&Any ASCII character
?Alphabetic data (a-Z)
UAccepts a-Z, forces to A-Z (uppercase)
LAccepts a-Z, forces to a-z (lowercase)
\Escape character. Use this character if you would like one of the above to be interpreted as a literal character (e.g., shown in the mask).
Here are some examples of popular masks:
NameMaskExample
Date##/##/##12/24/95
Time##:## UU12:35 AM
Social Security Number###-##-####148-92-1532
Phone:(###) ###-#### [####](919) 321-6186 7
Zip code + 4:#####-####27858-1203
First Name????????????????Bartholemew
See Also