DDV_MinMaxInt
Visual Studio 2008
Call DDV_MinMaxInt to verify that the value in the control associated with value falls between minVal and maxVal.
void AFXAPI DDV_MinMaxInt( CDataExchange* pDX, int value, int minVal, int maxVal );
For more information about DDV, see Dialog Data Exchange and Validation.