| void CBCGPMaskEdit::EnableMask | ( | LPCTSTR | lpszMask, |
| LPCTSTR | lpszInputTemplate, | ||
| TCHAR | chMaskInputTemplate = _T('_'), |
||
| LPCTSTR | lpszValid = NULL |
||
| ) |
Sets up the mask.
Use this member function to set up the mask for the edit control.
The default implementation uses the following characters for mask:
You can derive a class from CBCGPMaskEdit and override IsMaskedChar() for the custom mask processing.
| lpszMask | The mask string specifies what type of characters can be written and where. |
| lpszInputTemplate | The mask template string. It's length must be the same as lpszMask's length. '_' symbols is used as a character placeholder. |
| chMaskInputTemplate | Specifies the default character. |
| lpszValid | Specifies a string which is interpreted as a set of valid characters. |
Examples of EnableMask: