ClassWizard and Dialog Data Validation

OverviewHow Do I

By default, ClassWizard supports the types of dialog data validation (DDV) shown in the following table, but you can add additional types (see .

DDV Variable Types

Variable type Data validation
Cstring Maximum length
Numeric (int, UINT, long, DWORD, float, double) Minimum value, maximum value

You can define the maximum length for a CString DDX variable or the minimum or maximum values for a numeric DDX variable at the time you create it.

At run time, if the value entered by the user exceeds the range you specify, the framework automatically displays a message box asking the user to reenter the value. The validation of DDX variables takes place all at once when the user clicks OK to accept the entries in the dialog box.