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