| 846 | } |
| 847 | |
| 848 | void SMaskEdit::CorrectWindowText() |
| 849 | { |
| 850 | int nLiteralLength = m_strLiteral.GetLength(); |
| 851 | int nWindowTextLength = m_strWindowText.GetLength(); |
| 852 | |
| 853 | if (nWindowTextLength > nLiteralLength) |
| 854 | { |
| 855 | m_strWindowText = m_strWindowText.Left(nLiteralLength); |
| 856 | } |
| 857 | else if (nWindowTextLength < nLiteralLength) |
| 858 | { |
| 859 | m_strWindowText += m_strLiteral.Mid(nWindowTextLength, nLiteralLength - nWindowTextLength); |
| 860 | } |
| 861 | } |
| 862 | |
| 863 | void SMaskEdit::GetMaskState(BOOL bCorrectSelection) |
| 864 | { |