MCPcopy Create free account
hub / github.com/SOUI2/soui / CorrectWindowText

Method CorrectWindowText

controls.extend/SDateTimeEdit.cpp:848–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

846}
847
848void 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
863void SMaskEdit::GetMaskState(BOOL bCorrectSelection)
864{

Callers

nothing calls this directly

Calls 3

GetLengthMethod · 0.45
LeftMethod · 0.45
MidMethod · 0.45

Tested by

no test coverage detected