DDV_MaxChars
Visual Studio 2010
Call DDV_MaxChars to verify that the amount of characters in the control associated with value does not exceed nChars.
void AFXAPI DDV_MaxChars( CDataExchange* pDX, CString const& value, int nChars );
For more information about DDV, see Dialog Data Exchange and Validation.