SECMaskEdit::IsCharValid

BOOLSECMaskEdit::IsCharValid(intnPos, TCHAR&ch)

Determines if a character is valid for the specified position.

Defined in: SECMEDIT.CPP

Return Value

Nonzero if the character is valid, otherwise 0.

Parameters

nPos

Position in mask.

ch

Character to check.

Comments

Based on the position in the mask determines if the newly entered character, ch, is valid. If the current position is one of the mask characters, checks that ch fits the semantics of the mask character.

Note: The ES_UPPERCASE and ES_LOWERCASE styles override the 'U' and 'L' mask characters

See  SetMask for mask character definitions.

See Also

SECMaskEdit  SetMask