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