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