GetMinMaxVal example for C++ 5.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_LEADRasterView1.GetRaster().GetMinMaxVal();
cs.Format(TEXT("%ld"), m_LEADRasterView1.GetRaster().GetMinVal());
m_Text1.SetWindowText(cs);
cs.Format(TEXT("%ld"), m_LEADRasterView1.GetRaster().GetMaxVal());
m_Text2.SetWindowText(cs);