Use ClassWizard to add a member varibles for the controls you want to retain.
After the dialog is closed but before it is deleted you can access the data in those member varibles.