CHistogram:GetMax
The GetMax method returns the actual maximum value used by the histogram Calc method. This method is useful when the maximum value is not known either because the default binning was used or the SetBinAuto method was used.
nMaxVal = CHistogram:GetMax( )