GetMinMaxVal example for C++ 4.0 and later

The following example retrieves the values for MinVal and MaxVal using GetMinMaxVal and writes the results.

    CString cs;

    //must call GetMinMaxVal first
    m_Lead1.GetMinMaxVal();
    cs.Format("%ld", m_Lead1.GetMinVal());
    m_Edit3.SetWindowText(cs);
    cs.Format("%ld", m_Lead1.GetMaxVal());
    m_Edit4.SetWindowText(cs);