Setting Initial Values for DDX Member Variables
You can set the initial value of dialog data exchange (DDX) variables by editing the initialization code that ClassWizard places in the constructor for the dialog box class. (ClassWizard does not disturb these initialization statements once they are put in place.) The framework transfers the values to the dialog box when it is created.
Note that you can also set initial values for DDX variables after your dialog class object has been constructed, but before DoModal or CreateDialog is called.
To see what the user typed once the dialog box is dismissed, access the values of the DDX variables just as you would any other C++ member variable.